edu.stanford.hci.dtools.actions
Class ExportDeviceAction

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.CrossEditorAction
                  extended by edu.stanford.hci.dtools.actions.ExportDeviceAction
All Implemented Interfaces:
org.eclipse.gef.Disposable, org.eclipse.gef.ui.actions.UpdateAction, org.eclipse.jface.action.IAction

public class ExportDeviceAction
extends CrossEditorAction

Action which transfers the edited state back into the active State Chart

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 EXPORT
          Public ID to use
 
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
ExportDeviceAction(org.eclipse.ui.IEditorPart part, StatechartEditor statechart)
           
 
Method Summary
 DeviceConfiguration getNewConfiguration()
          Returns a DC that was created using the device editor
 void run()
           
 void setComponentConnectionMapping(java.util.Map<StateModel,java.util.List<ComponentConnectionModel>> map)
           
 
Methods inherited from class edu.stanford.hci.dtools.actions.CrossEditorAction
getStateChartFileForCurrentDevice, setPart
 
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

EXPORT

public static final java.lang.String EXPORT
Public ID to use

See Also:
Constant Field Values
Constructor Detail

ExportDeviceAction

public ExportDeviceAction(org.eclipse.ui.IEditorPart part,
                          StatechartEditor statechart)
Method Detail

setComponentConnectionMapping

public void setComponentConnectionMapping(java.util.Map<StateModel,java.util.List<ComponentConnectionModel>> map)

run

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

getNewConfiguration

public DeviceConfiguration getNewConfiguration()
Returns a DC that was created using the device editor