List of usage examples for org.eclipse.jface.action MenuManager prependToGroup
@Override
public void prependToGroup(String groupName, IAction action)
From source file:uk.ac.stfc.isis.ibex.ui.blocks.groups.GroupsMenu.java
License:Open Source License
/** * Constructor for the class when there is already a menu that we want to * add on to the end of. Sets up the menu manager to include show or hide * blocks./*from w w w. j a v a2 s .c o m*/ * * @param groups * The panel on which to hide/show blocks. * @param manager * The pre-existing menu */ public GroupsMenu(final GroupsPanel groups, final MenuManager manager) { this.manager = manager; this.groups = groups; initialise(); manager.prependToGroup(GROUP_MENU_GROUP, new Separator()); }