GraphEditPopupMenuAction action = null;
int index = 0;
for (final String associationName : FamixAssociationMap.getInstance().getNames()) {
action = new GraphEditPopupMenuAction(associationName, fGraphPanel);
action.setDescription("Add '" + associationName + "' dependencies of selected node and connected nodes");
action.setCommand(new AddEntitiesViaInOutDependenciesCommand(node, getGraphLoader(), getHierarchicEdgeGrouper(), FamixAssociationMap.getInstance().getType(associationName)));
addAllDependenciesMenu.add(action);
index++;
}
return addAllDependenciesMenu;
}