|
|||||||||
| Home >> All >> org >> eclipse >> jface >> [ action overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.jface.action
Interface IMenuManager

- All Superinterfaces:
- IContributionItem, IContributionManager
- All Known Implementing Classes:
- MenuManager, SubMenuManager
- public interface IMenuManager
- extends IContributionManager, IContributionItem
The IMenuManager interface provides protocol for managing
contributions to a menu bar and its sub menus.
An IMenuManager is also an IContributionItem,
allowing sub-menus to be nested in parent menus.
This interface is internal to the framework; it should not be implemented outside the framework.
This package provides a concrete menu manager implementation,
MenuManager.
| Method Summary | |
void |
addMenuListener(IMenuListener listener)
Adds a menu listener to this menu. |
IMenuManager |
findMenuUsingPath(java.lang.String path)
Finds the manager for the menu at the given path. |
IContributionItem |
findUsingPath(java.lang.String path)
Finds the contribution item at the given path. |
boolean |
getRemoveAllWhenShown()
Returns whether all items should be removed when the menu is first shown, but before notifying menu listeners. |
boolean |
isEnabled()
Returns whether this menu should be enabled or not. |
void |
removeMenuListener(IMenuListener listener)
Removes the given menu listener from this menu. |
void |
setRemoveAllWhenShown(boolean removeAll)
Sets whether all items should be removed when the menu is first shown, but before notifying menu listeners. |
void |
updateAll(boolean force)
Incrementally builds the menu from the contribution items, and does so recursively for all submenus. |
| Methods inherited from interface org.eclipse.jface.action.IContributionManager |
add, add, appendToGroup, appendToGroup, find, getItems, getOverrides, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, markDirty, prependToGroup, prependToGroup, remove, remove, removeAll, update |
| Methods inherited from interface org.eclipse.jface.action.IContributionItem |
dispose, fill, fill, fill, fill, getId, isDirty, isDynamic, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, update, update |
| Method Detail |
addMenuListener
public void addMenuListener(IMenuListener listener)
- Adds a menu listener to this menu.
Has no effect if an identical listener is already registered.
findMenuUsingPath
public IMenuManager findMenuUsingPath(java.lang.String path)
- Finds the manager for the menu at the given path. A path
consists of contribution item ids separated by the separator
character. The path separator character is
'/'.Convenience for
findUsingPath(path)which extracts anIMenuManagerif possible.
findUsingPath
public IContributionItem findUsingPath(java.lang.String path)
- Finds the contribution item at the given path. A path
consists of contribution item ids separated by the separator
character. The path separator character is
'/'.
getRemoveAllWhenShown
public boolean getRemoveAllWhenShown()
- Returns whether all items should be removed when the menu is first shown,
but before notifying menu listeners. The default is
false.
isEnabled
public boolean isEnabled()
- Returns whether this menu should be enabled or not.
- Specified by:
isEnabledin interfaceIContributionItem
removeMenuListener
public void removeMenuListener(IMenuListener listener)
- Removes the given menu listener from this menu.
Has no effect if an identical listener is not registered.
setRemoveAllWhenShown
public void setRemoveAllWhenShown(boolean removeAll)
- Sets whether all items should be removed when the menu is first shown,
but before notifying menu listeners.
updateAll
public void updateAll(boolean force)
- Incrementally builds the menu from the contribution items, and
does so recursively for all submenus.
|
|||||||||
| Home >> All >> org >> eclipse >> jface >> [ action overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC