sk.uniba.euromath.editor.actions
Interface IActionContributor

All Known Implementing Classes:
TextActionContributor, XMLActionContributor

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.

Author:
Tomáš Studva Sep 19, 2005

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

contributeToToolBar

void contributeToToolBar(IToolBarManager manager)
Contribute to global tool bar by modifying passed manager.

Parameters:
manager -

contributeToStatusLine

void contributeToStatusLine(IStatusLineManager manager)
Contribute to status line by modifying passed manager.

Parameters:
manager -

contributeCoolBar

void contributeCoolBar(ICoolBarManager manager)
Contribute to global cool bar by modifying passed manager.

Parameters:
manager -

contributeToMenu

void contributeToMenu(IMenuManager manager)
Contribute to global menu by modifying passed manager.

Parameters:
manager -

init

void init(org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
Initialization this contributor with access to global registry. After this call contributor can create actions and contribute using global registry. Created actions are stored globally for all open IEditors. When focus changes, actions are automatically moved to active EditorPart.

Parameters:
actionRegistry - global action registry

getGlobalActionRegistry

org.eclipse.gef.ui.actions.ActionRegistry getGlobalActionRegistry()
Returns global action registry passed in init.

Returns:
global action registry
See Also:
init(ActionRegistry)


Copyright © 2003-2006 null. All Rights Reserved.