GraphEditPopupMenuAction action = null;
int index = 0;
for (final String associationName : FamixAssociationMap.getInstance().getNames()) {
action = new GraphEditPopupMenuAction(associationName, fGraphPanel);
action.setDescription("Add '" + associationName + "' between selected nodes");
action.setCommand(new AddDependenciesBetweenEntities(nodes, FamixAssociationMap.getInstance().getType(associationName), getGraphLoader(), getHierarchicEdgeGrouper()));
addMenuDependenciesBetweenNodes.add(action);
index++;
}
return addMenuDependenciesBetweenNodes;
}