org.dawb.common.ui.views.monitor
Class MonitorView

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.dawb.common.ui.views.monitor.MonitorView
All Implemented Interfaces:
HardwareObjectListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, 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 final class MonitorView
extends org.eclipse.ui.part.ViewPart
implements HardwareObjectListener

Additions: Use TreeViewer to display the scannables in their scannable groups. An action to add all scannables.


Field Summary
static java.lang.String ID
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
MonitorView()
           
 
Method Summary
 void addServerObject(HardwareObject toAdd)
          Add an object to listen to.
 void clearSelectedObjects()
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          Create contents of the view part
 void deleteSelectedObject()
           
 void dispose()
           
 void hardwareObjectChangePerformed(HardwareObjectEvent evt)
          You must implement this method in a thread safe (SWT) manner.
 void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento)
           
 void move(int moveAmount)
          Called to refresh all the values in the table.
 void refresh()
          Called to refresh all the values in the table.
 void resetSelectedObjects()
          Used when user has too many scannables and would like to reset the view.
 void saveState(org.eclipse.ui.IMemento memento)
           
 void setFocus()
           
 
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, 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

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

MonitorView

public MonitorView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Create contents of the view part

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

init

public void init(org.eclipse.ui.IViewSite site,
                 org.eclipse.ui.IMemento memento)
          throws org.eclipse.ui.PartInitException
Specified by:
init in interface org.eclipse.ui.IViewPart
Overrides:
init in class org.eclipse.ui.part.ViewPart
Throws:
org.eclipse.ui.PartInitException

saveState

public void saveState(org.eclipse.ui.IMemento memento)
Specified by:
saveState in interface org.eclipse.ui.IPersistable
Specified by:
saveState in interface org.eclipse.ui.IViewPart
Overrides:
saveState in class org.eclipse.ui.part.ViewPart

hardwareObjectChangePerformed

public void hardwareObjectChangePerformed(HardwareObjectEvent evt)
Description copied from interface: HardwareObjectListener
You must implement this method in a thread safe (SWT) manner. Many notifications can come through on this method from different threads. A queue should be used to deal with this.

Specified by:
hardwareObjectChangePerformed in interface HardwareObjectListener

dispose

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

addServerObject

public void addServerObject(HardwareObject toAdd)
Add an object to listen to.

Parameters:
toAdd -

deleteSelectedObject

public void deleteSelectedObject()

resetSelectedObjects

public void resetSelectedObjects()
Used when user has too many scannables and would like to reset the view.


refresh

public void refresh()
Called to refresh all the values in the table.


move

public void move(int moveAmount)
Called to refresh all the values in the table.

Parameters:
moveAmount -

clearSelectedObjects

public void clearSelectedObjects()

setFocus

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