org.eclipse.ohf.stem.ui.views
Class SimulationControlView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.eclipse.ohf.stem.ui.views.SimulationControlView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, ISimulationManagerListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class SimulationControlView
extends org.eclipse.ui.part.ViewPart
implements ISimulationManagerListener

This class implements an eclipse view that displays the state of the currently active simulations and GUI controls that allow the simulations to be managed.


Field Summary
static java.lang.String ID_SIMULATION_CONTROL_VIEW
          The identifier of the Simulation Control View
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
SimulationControlView()
          Constructor
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This is the method where the view is put together piece by piece
 void dispose()
           
 java.util.List<SimulationControl> getSimulationControlList()
           
 void setFocus()
           
 void simulationsChanged(SimulationManagerEvent event)
          A simulation has been started or stopped.
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID_SIMULATION_CONTROL_VIEW

public static final java.lang.String ID_SIMULATION_CONTROL_VIEW
The identifier of the Simulation Control View

See Also:
Constant Field Values
Constructor Detail

SimulationControlView

public SimulationControlView()
Constructor

Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This is the method where the view is put together piece by piece

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart
Parameters:
parent -

getSimulationControlList

public java.util.List<SimulationControl> getSimulationControlList()
Returns:
the list of simulation controls

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.setFocus()

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.dispose()

simulationsChanged

public void simulationsChanged(SimulationManagerEvent event)
A simulation has been started or stopped. We have registered for SimulationManager.addListener() and so we are informed when a simulation is started and when one is stopped.

Specified by:
simulationsChanged in interface ISimulationManagerListener
Parameters:
event - the event that records what happened to the manager.
See Also:
ISimulationManagerListener.simulationsChanged(org.eclipse.ohf.stem.jobs.simulation.SimulationManagerEvent)