edu.stanford.hci.dtools.statechart
Class StatechartEditorActionBarContributor

java.lang.Object
  extended by org.eclipse.ui.part.EditorActionBarContributor
      extended by org.eclipse.gef.ui.actions.ActionBarContributor
          extended by 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 )

Constructor Summary
StatechartEditorActionBarContributor()
           
 
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
 

Constructor Detail

StatechartEditorActionBarContributor

public StatechartEditorActionBarContributor()
Method Detail

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