edu.stanford.hci.dtools.actions
Class OpenDeviceEditorAction

java.lang.Object
  extended by org.eclipse.jface.action.Action
      extended by edu.stanford.hci.dtools.actions.OpenDeviceEditorAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction

public class OpenDeviceEditorAction
extends org.eclipse.jface.action.Action

Intuits from StatechartEditor to DeviceEditor, and opens the device editor.

This software is distributed under the BSD License.

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

Field Summary
 
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
OpenDeviceEditorAction(StatechartEditor chart, org.eclipse.ui.IEditorInput part)
           
 
Method Summary
static org.eclipse.core.resources.IFile getDeviceFileForCurrentStateChart(org.eclipse.ui.IEditorInput input)
          Does some file manipulation to return an IFile which is the .dtd file associated with the d.tools file
 void run()
           
 
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, isEnabled, 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
 

Constructor Detail

OpenDeviceEditorAction

public OpenDeviceEditorAction(StatechartEditor chart,
                              org.eclipse.ui.IEditorInput part)
Parameters:
part - the shapes editor
Method Detail

getDeviceFileForCurrentStateChart

public static org.eclipse.core.resources.IFile getDeviceFileForCurrentStateChart(org.eclipse.ui.IEditorInput input)
Does some file manipulation to return an IFile which is the .dtd file associated with the d.tools file

Returns:

run

public void run()
Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action