Package org.eclipse.ui.internal
Class EditorMenuManager
java.lang.Object
org.eclipse.jface.action.SubContributionManager
org.eclipse.jface.action.SubMenuManager
org.eclipse.ui.internal.EditorMenuManager
- All Implemented Interfaces:
- IContributionItem,- IContributionManager,- IMenuManager
An 
EditorMenuManager is used to sort the contributions made by
 an editor so that they always appear after the action sets.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendToGroup(String groupName, IContributionItem item) Adds a contribution item to this manager at the end of the group with the given name.protected IAction[]protected voidprotected voidgetAllContributedActions(HashSet<IAction> set, IContributionItem item) getItems()Returns all contribution items known to this manager.Returns the overrides for the items of this manager.voidprependToGroup(String groupName, IContributionItem item) Adds a contribution item to this manager at the beginning of the group with the given name.voidsetEnabledAllowed(boolean enabledAllowed) Sets the enablement ability of all the items contributed by the editor.voidsetVisible(boolean visible, boolean forceVisibility) Sets the visibility of the manager.protected SubMenuManagerwrapMenu(IMenuManager menu) Wraps a menu manager in a sub menu manager, and returns the new wrapper.Methods inherited from class org.eclipse.jface.action.SubMenuManageraddMenuListener, dispose, disposeManager, fill, fill, fill, fill, find, findMenuUsingPath, findUsingPath, getId, getParentMenuManager, getRemoveAllWhenShown, getWrapper, isDynamic, isEnabled, isGroupMarker, isSeparator, removeAll, removeMenuListener, saveWidgetState, setParent, setRemoveAllWhenShown, setVisible, update, update, update, updateAllMethods inherited from class org.eclipse.jface.action.SubContributionManageradd, add, appendToGroup, getParent, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, isVisible, itemAdded, itemRemoved, items, markDirty, prependToGroup, remove, remove, unwrap, wrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IContributionItemisDirty, isVisibleMethods inherited from interface org.eclipse.jface.action.IContributionManageradd, add, appendToGroup, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, remove, remove
- 
Constructor Details- 
EditorMenuManagerConstructs a new editor manager.
 
- 
- 
Method Details- 
getItemsDescription copied from interface:IContributionManagerReturns all contribution items known to this manager.- Specified by:
- getItemsin interface- IContributionManager
- Overrides:
- getItemsin class- SubContributionManager
- Returns:
- a list of contribution items
 
- 
getOverridesDescription copied from interface:IContributionManagerReturns the overrides for the items of this manager.- Specified by:
- getOverridesin interface- IContributionManager
- Overrides:
- getOverridesin class- SubContributionManager
- Returns:
- the overrides for the items of this manager
 
- 
prependToGroupDescription copied from interface:IContributionManagerAdds a contribution item to this manager at the beginning of the group with the given name.- Specified by:
- prependToGroupin interface- IContributionManager
- Overrides:
- prependToGroupin class- SubContributionManager
- Parameters:
- groupName- the name of the group
- item- the contribution item
 
- 
appendToGroupDescription copied from interface:IContributionManagerAdds a contribution item to this manager at the end of the group with the given name.- Specified by:
- appendToGroupin interface- IContributionManager
- Overrides:
- appendToGroupin class- SubContributionManager
- Parameters:
- groupName- the name of the group
- item- the contribution item
 
- 
setVisiblepublic void setVisible(boolean visible, boolean forceVisibility) Sets the visibility of the manager. If the visibility istruethen each item within the manager appears within the parent manager. Otherwise, the items are not visible.If force visibility is true, or grayed out if force visibility isfalseThis is a workaround for the layout flashing when editors contribute large amounts of items. - Parameters:
- visible- the new visibility
- forceVisibility- whether to change the visibility or just the enablement state.
 
- 
setEnabledAllowedpublic void setEnabledAllowed(boolean enabledAllowed) Sets the enablement ability of all the items contributed by the editor.- Parameters:
- enabledAllowed-- trueif the items may enable
- Since:
- 2.0
 
- 
wrapMenuDescription copied from class:SubMenuManagerWraps a menu manager in a sub menu manager, and returns the new wrapper.- Overrides:
- wrapMenuin class- SubMenuManager
- Parameters:
- menu- the menu manager to wrap
- Returns:
- the new wrapped menu manager
 
- 
getAllContributedActions
- 
getAllContributedActions
- 
getAllContributedActions
 
-