GEF v2.0

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 class ActionBarContributor
extends EditorActionBarContributor

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


Field Summary
protected  List globalActions
          A list of global actions.
static String SEPARATOR
           
protected  List toolbarActions
          A list of actions that will be on the toolbar.
 
Constructor Summary
ActionBarContributor()
           
 
Method Summary
protected  void declareActions()
          Initializes the global and toolbar action lists.
protected  IEditorPart getActiveEditor()
          Returns the active editor.
 void init(IActionBars bars)
          Initializes the contributor.
 void setActiveEditor(IEditorPart editor)
          Sets the active editor and updates the global actions.
 
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToMenu, contributeToStatusLine, contributeToToolBar, dispose, getActionBars, getPage, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

public static final String SEPARATOR

globalActions

protected List globalActions
A list of global actions.

toolbarActions

protected List toolbarActions
A list of actions that will be on the toolbar.
Constructor Detail

ActionBarContributor

public ActionBarContributor()
Method Detail

declareActions

protected void declareActions()
Initializes the global and toolbar action lists.
See Also:
init(IActionBars)

getActiveEditor

protected IEditorPart getActiveEditor()
Returns the active editor.

init

public void init(IActionBars bars)
Initializes the contributor.
Overrides:
init in class EditorActionBarContributor
Parameters:
bars - The IActionBars for the workbench.

setActiveEditor

public void setActiveEditor(IEditorPart editor)
Sets the active editor and updates the global actions.
Overrides:
setActiveEditor in class EditorActionBarContributor

GEF v2.0