|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IActionContributor
Contributor to global bars like menu, status line, tool bar, cool bar and to local bars like context menu. Contribution to global bars must be by IMultiViewActions stored in global registry. Reason is: when focus changes, actions are moved to active EditorPart (if is some active) and contribution by old active IEditor are removed. All actions contributed to global bars must have ids. Contribution to local context menu is done by creation of context menu and contributing to it by method contributeToContextMenu. In method init acquires global action registry for all open IEditors in all open EditorSites.
Method Summary | |
---|---|
void |
contributeCoolBar(ICoolBarManager manager)
Contribute to global cool bar by modifying passed manager. |
void |
contributeToMenu(IMenuManager manager)
Contribute to global menu by modifying passed manager. |
void |
contributeToStatusLine(IStatusLineManager manager)
Contribute to status line by modifying passed manager. |
void |
contributeToToolBar(IToolBarManager manager)
Contribute to global tool bar by modifying passed manager. |
org.eclipse.gef.ui.actions.ActionRegistry |
getGlobalActionRegistry()
Returns global action registry passed in init. |
void |
init(org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
Initialization this contributor with access to global registry. |
Method Detail |
---|
void contributeToToolBar(IToolBarManager manager)
manager
- void contributeToStatusLine(IStatusLineManager manager)
manager
- void contributeCoolBar(ICoolBarManager manager)
manager
- void contributeToMenu(IMenuManager manager)
manager
- void init(org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
actionRegistry
- global action registryorg.eclipse.gef.ui.actions.ActionRegistry getGlobalActionRegistry()
init(ActionRegistry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |