|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.SystemMenuManager
Override/wrapper of JFace MenuManager so we can redirect any menu additions to specific menu groups to go into pre-defined submenus.
Only exposes core set of MenuManager methods. Rest can be accessed by calling getMenuManger().
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
SystemMenuManager(IMenuManager menuManager)
Constructor for SystemMenuManager |
|
| Method Summary | |
|---|---|
void |
add(String menuGroup,
IAction action)
Special helper that intelligently adds system framework actions |
void |
addSeparator()
Add a separator. |
void |
appendToGroup(String groupName,
IAction action)
Method declared on IContributionManager. |
void |
appendToGroup(String groupName,
IContributionItem menuOrSeparator)
Method declared on IContributionManager. |
IMenuManager |
getMenuManager()
Get the wrapped IMenuManager manager |
IMenuManager |
getSpecialSubMenuByMenuID(String menuID)
|
void |
prependToGroup(String groupName,
IAction action)
Method declared on IContributionManager. |
void |
prependToGroup(String groupName,
IContributionItem subMenu)
Method declared on IContributionManager. |
boolean |
wasMenuCreated()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SystemMenuManager(IMenuManager menuManager)
menuManager - existing JFace menu manager| Method Detail |
public IMenuManager getMenuManager()
public void appendToGroup(String groupName,
IAction action)
Intercepted so we can direct appends to certain groups into appropriate cascading submenus.
groupName - group to append to. See ISystemContextMenuConstants.action - action to append.
public void appendToGroup(String groupName,
IContributionItem menuOrSeparator)
Intercepted so we can direct appends to certain groups into appropriate cascading submenus.
groupName - group to append to. See ISystemContextMenuConstants.
public void prependToGroup(String groupName,
IAction action)
Intercepted so we can direct appends to certain groups into appropriate cascading submenus.
groupName - group to append to. See ISystemContextMenuConstants.action - action to prepend.
public void prependToGroup(String groupName,
IContributionItem subMenu)
Intercepted so we can direct appends to certain groups into appropriate cascading submenus.
groupName - group to append to. See ISystemContextMenuConstants.public void addSeparator()
public void add(String menuGroup,
IAction action)
menuGroup - default menuGroup to add to, if action doesn't contain an explicit locationaction - action to add to the menupublic IMenuManager getSpecialSubMenuByMenuID(String menuID)
public boolean wasMenuCreated()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||