org.eclipse.ohf.stem.ui.actions
Class InitiationSimulationActionDelegate
java.lang.Object
org.eclipse.ohf.stem.ui.actions.InitiationSimulationActionDelegate
- All Implemented Interfaces:
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
- Direct Known Subclasses:
- RunSimulationActionDelegate, StepSimulationActionDelegate
public abstract class InitiationSimulationActionDelegate
- extends java.lang.Object
This class is a Simulation Action Delegate that initiates the execution of a
simulation. This is different from the other simulation action delegates
PauseSimulationActionDelegate
, ResetSimulationActionDelegate
and StopSimulationActionDelegate
which do not need to create a
Simulation from either a Scenario
or a IConfigurationElement
.
In particular, this type of action delegate needs to keep track of selected
Scenario's and IConfigurationElements that specify Scenarios so that
Simulations can be started from them.
Method Summary |
void |
dispose()
|
void |
init(org.eclipse.ui.IWorkbenchWindow window)
|
static boolean |
isScenarioConfigurationElement(org.eclipse.core.runtime.IConfigurationElement configElement)
|
void |
run(org.eclipse.jface.action.IAction action)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitiationSimulationActionDelegate
public InitiationSimulationActionDelegate()
run
public void run(org.eclipse.jface.action.IAction action)
- Specified by:
run
in interface org.eclipse.ui.IActionDelegate
- See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)
,
run(IAction)
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interface org.eclipse.ui.IActionDelegate
- See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction,
org.eclipse.jface.viewers.ISelection)
isScenarioConfigurationElement
public static boolean isScenarioConfigurationElement(org.eclipse.core.runtime.IConfigurationElement configElement)
- Parameters:
configElement
- a configuration element for a plug-in
- Returns:
- true if the configuration element is for a Scenario
init
public void init(org.eclipse.ui.IWorkbenchWindow window)
- Specified by:
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
- See Also:
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
- See Also:
IWorkbenchWindowActionDelegate.dispose()