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.

There are two possibilities to contribute to global bar: 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.
 Map<String,IAction> getGlobalActionHandlers()
          Return global action handlers, which are registred when associated IEditor is gains focus and removed when losts focus;
 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 -

getGlobalActionHandlers

Map<String,IAction> getGlobalActionHandlers()
Return global action handlers, which are registred when associated IEditor is gains focus and removed when losts focus;

Returns:
Map

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.