add(new AssignmentsMenuAction());
final JMenu bars=new JMenu(Messages.getString("Gantt.Popup.barStylesMenu"));
final JMenu annotations=new JMenu(Messages.getString("Gantt.Popup.annotationStylesMenu"));
CollectionUtils.forAllDo(interactor.getGraph().getBarStyles().getRows(), new Closure() {
public void execute(Object arg0) {
BarStyle barStyle = (BarStyle)arg0;
BarMenuAction menuAction =new BarMenuAction(barStyle);
if (barStyle.isLink()) // move the show links item to the main menu
add(menuAction);
else if (barStyle.isCalendar()) // move the show links item to the main menu
add(menuAction);
else if (barStyle.isHorizontalGrid()) // move the show links item to the main menu
add(menuAction);
else if (barStyle.isAnnotation())
annotations.add(menuAction);
else
bars.add(menuAction);
}