addAlignmentSubMenu(manager, GEFActionConstants.GROUP_REST);
PictogramElement pes[] = getBehavior().getSelectedPictogramElements();
ICustomContext context = new CustomContext(pes);
IToolBehaviorProvider tb = getConfigurationProvider().getDiagramTypeProvider().getCurrentToolBehaviorProvider();
IContextMenuEntry[] contextMenuEntries = tb.getContextMenu(context);
// the last one is an add menu; lets move it to a different group
int lastIndex = contextMenuEntries.length - 1;
IContextMenuEntry addEntries = contextMenuEntries[lastIndex];
addEntry(manager, addEntries, context, GEFActionConstants.GROUP_ADD, null);