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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
ActionBarContributor
public ActionBarContributor()
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