Eclipse GEF
2.1

org.eclipse.gef.ui.actions
Class ActionBarContributor

java.lang.Object
  |
  +--org.eclipse.ui.part.EditorActionBarContributor
        |
        +--org.eclipse.gef.ui.actions.ActionBarContributor
All Implemented Interfaces:
IEditorActionBarContributor

public abstract class ActionBarContributor
extends EditorActionBarContributor

Contributes actions to the workbench. !!Warning: This class is subject to change.


Constructor Summary
ActionBarContributor()
           
 
Method Summary
protected  void addAction(IAction action)
           
protected  void addGlobalActionKey(String key)
           
protected  void addRetargetAction(RetargetAction action)
           
protected abstract  void buildActions()
          Creates and initializes Actions managed by this contributor.
protected abstract  void declareGlobalActionKeys()
           
 void dispose()
          Remove the RetargetActions that are IPartListeners on the IWorkbenchPage.
protected  IAction getAction(String id)
           
protected  ActionRegistry getActionRegistry()
          returns the ActionRegistry.
 void init(IActionBars bars)
           
 void setActiveEditor(IEditorPart editor)
           
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToMenu, contributeToStatusLine, contributeToToolBar, getActionBars, getPage, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBarContributor

public ActionBarContributor()
Method Detail

addAction

protected void addAction(IAction action)

addGlobalActionKey

protected void addGlobalActionKey(String key)

addRetargetAction

protected void addRetargetAction(RetargetAction action)

buildActions

protected abstract void buildActions()
Creates and initializes Actions managed by this contributor.


declareGlobalActionKeys

protected abstract void declareGlobalActionKeys()

dispose

public void dispose()
Remove the RetargetActions that are IPartListeners on the IWorkbenchPage.

Specified by:
dispose in interface IEditorActionBarContributor
Overrides:
dispose in class EditorActionBarContributor
See Also:
EditorActionBarContributor.dispose()

getAction

protected IAction getAction(String id)

getActionRegistry

protected ActionRegistry getActionRegistry()
returns the ActionRegistry.

Returns:
the ActionRegistry

init

public void init(IActionBars bars)
Overrides:
init in class EditorActionBarContributor
See Also:
EditorActionBarContributor.init(IActionBars)

setActiveEditor

public void setActiveEditor(IEditorPart editor)
Specified by:
setActiveEditor in interface IEditorActionBarContributor
Overrides:
setActiveEditor in class EditorActionBarContributor
See Also:
IEditorActionBarContributor.setActiveEditor(IEditorPart)

Eclipse GEF
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.