Package org.eclipse.ui.internal
Class ActionSetMenuManager
java.lang.Object
org.eclipse.jface.action.SubContributionManager
org.eclipse.jface.action.SubMenuManager
org.eclipse.ui.internal.ActionSetMenuManager
- 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 Summary
ConstructorsConstructorDescriptionActionSetMenuManager(IMenuManager mgr, String actionSetId) Constructs a new editor manager. -
Method Summary
Modifier and TypeMethodDescriptionReturns the item passed to us, not the wrapper.getItems()Returns all contribution items known to this manager.toString()protected SubContributionItemwrap(IContributionItem item) Wraps a contribution item in a sub contribution item, and returns the new wrapper.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.SubMenuManager
addMenuListener, dispose, disposeManager, fill, fill, fill, fill, 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.SubContributionManager
add, add, appendToGroup, appendToGroup, getOverrides, getParent, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, isVisible, itemAdded, itemRemoved, items, markDirty, prependToGroup, prependToGroup, remove, remove, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.action.IContributionItem
isDirty, isVisibleMethods inherited from interface org.eclipse.jface.action.IContributionManager
add, add, appendToGroup, appendToGroup, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove
-
Constructor Details
-
ActionSetMenuManager
Constructs a new editor manager.
-
-
Method Details
-
find
Returns the item passed to us, not the wrapper. In the case of menu's not added by this manager, ensure that we return a wrapper for the menu.- Specified by:
findin interfaceIContributionManager- Overrides:
findin classSubMenuManager- Parameters:
id- of theIContributionItem- Returns:
- the contribution item, or
nullif no item with the given id can be found
-
getActionSetId
- Returns:
- Returns the actionSetId.
-
getItems
Description copied from interface:IContributionManagerReturns all contribution items known to this manager.- Specified by:
getItemsin interfaceIContributionManager- Overrides:
getItemsin classSubContributionManager- Returns:
- a list of contribution items
-
wrap
Description copied from class:SubContributionManagerWraps a contribution item in a sub contribution item, and returns the new wrapper.- Overrides:
wrapin classSubContributionManager- Parameters:
item- the contribution item to be wrapped- Returns:
- the wrapped item
-
wrapMenu
Description copied from class:SubMenuManagerWraps a menu manager in a sub menu manager, and returns the new wrapper.- Overrides:
wrapMenuin classSubMenuManager- Parameters:
menu- the menu manager to wrap- Returns:
- the new wrapped menu manager
-
toString
-