edu.stanford.hci.dtools.statechart
Class StatechartEditorActionBarContributor
java.lang.Object
org.eclipse.ui.part.EditorActionBarContributor
org.eclipse.gef.ui.actions.ActionBarContributor
edu.stanford.hci.dtools.statechart.StatechartEditorActionBarContributor
- All Implemented Interfaces:
- org.eclipse.ui.IEditorActionBarContributor
public class StatechartEditorActionBarContributor
- extends org.eclipse.gef.ui.actions.ActionBarContributor
Contributes edu.stanford.hci.dtools.actions to a toolbar.
This class is tied to the editor in the definition of editor-extension (see plugin.xml).
This software is distributed under the
BSD License.
This code is partially based on code that is copyright (c) 2004 Elias Volanakis. See License.txt
- Author:
- Elias Volanakis, Michael Bernstein ( mbernst(AT)stanford.edu ), Bjoern Hartmann ( bjoern(AT)stanford.edu )
Method Summary |
void |
contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
Add edu.stanford.hci.dtools.actions to the given toolbar. |
void |
setActiveEditor(org.eclipse.ui.IEditorPart editor)
Gets called when there is a new active editor. |
Methods inherited from class org.eclipse.gef.ui.actions.ActionBarContributor |
dispose, init |
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor |
contributeToCoolBar, contributeToMenu, contributeToStatusLine, getActionBars, getPage, init |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatechartEditorActionBarContributor
public StatechartEditorActionBarContributor()
contributeToToolBar
public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager toolBarManager)
- Add edu.stanford.hci.dtools.actions to the given toolbar.
- Overrides:
contributeToToolBar
in class org.eclipse.ui.part.EditorActionBarContributor
- See Also:
EditorActionBarContributor.contributeToToolBar(org.eclipse.jface.action.IToolBarManager)
setActiveEditor
public void setActiveEditor(org.eclipse.ui.IEditorPart editor)
- Gets called when there is a new active editor. Keeps our actions up to date.
- Specified by:
setActiveEditor
in interface org.eclipse.ui.IEditorActionBarContributor
- Overrides:
setActiveEditor
in class org.eclipse.gef.ui.actions.ActionBarContributor