edu.stanford.hci.dtools.actions
Class RunModeAction

java.lang.Object
  extended by org.eclipse.jface.action.Action
      extended by org.eclipse.gef.ui.actions.WorkbenchPartAction
          extended by org.eclipse.gef.ui.actions.EditorPartAction
              extended by edu.stanford.hci.dtools.actions.RunModeAction
All Implemented Interfaces:
org.eclipse.gef.Disposable, org.eclipse.gef.ui.actions.UpdateAction, org.eclipse.jface.action.IAction

public class RunModeAction
extends org.eclipse.gef.ui.actions.EditorPartAction

Toggles run mode

This software is distributed under the BSD License.

Author:
Bjoern Hartmann ( bjoern(AT)stanford.edu ), Michael Bernstein ( mbernst(AT)stanford.edu )

Field Summary
static java.lang.String RUN_MODE
           
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
RunModeAction(org.eclipse.ui.IEditorPart part)
           
 
Method Summary
 void run()
          Toggles run mode in a binary fashion (on/off)
 void setPart(org.eclipse.ui.IEditorPart e)
          Updates the part that this action is attached to.
 
Methods inherited from class org.eclipse.gef.ui.actions.WorkbenchPartAction
dispose, isEnabled, setLazyEnablementCalculation, update
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUN_MODE

public static java.lang.String RUN_MODE
Constructor Detail

RunModeAction

public RunModeAction(org.eclipse.ui.IEditorPart part)
Parameters:
part - the shapes editor
Method Detail

run

public void run()
Toggles run mode in a binary fashion (on/off)

Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action

setPart

public void setPart(org.eclipse.ui.IEditorPart e)
Updates the part that this action is attached to.

Parameters:
e - The new active IEditorPart