g-Eclipse
Release 1.0.0

eu.geclipse.ui.views
Class GridProjectView

java.lang.Object
  extended by ViewPart
      extended by eu.geclipse.ui.views.GridModelViewPart
          extended by eu.geclipse.ui.views.TreeControlViewPart
              extended by eu.geclipse.ui.views.GridProjectView
All Implemented Interfaces:
IGridJobStatusListener, IGridModelListener, java.util.EventListener

public class GridProjectView
extends TreeControlViewPart
implements IGridJobStatusListener

The grid project view is the central view of the g-Eclipse framework. With its help the user may manage his projects, especially his grid projects that are contained in the grid model. Therefore the root element of the grid project view is the IGridRoot itself.


Constructor Summary
GridProjectView()
           
 
Method Summary
 void createPartControl(Composite parent)
           
 void dispose()
           
 boolean isDragSource(IGridElement element)
          Determines if drag'n'drop should be made available for the specified element.
 void statusChanged(IGridJob job)
          Called when job status is changed.
 void statusUpdated(IGridJob job)
          Called after every update of job status, even if status wasn't changed during update.
 
Methods inherited from class eu.geclipse.ui.views.TreeControlViewPart
refreshViewer
 
Methods inherited from class eu.geclipse.ui.views.GridModelViewPart
getViewer, gridModelChanged, refreshViewer, setFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridProjectView

public GridProjectView()
Method Detail

createPartControl

public void createPartControl(Composite parent)
Overrides:
createPartControl in class GridModelViewPart

dispose

public void dispose()
Overrides:
dispose in class GridModelViewPart

isDragSource

public boolean isDragSource(IGridElement element)
Description copied from class: GridModelViewPart
Determines if drag'n'drop should be made available for the specified element.

Overrides:
isDragSource in class GridModelViewPart
Parameters:
element - The element for which drag'n'drop operations should be either allowed or forbidden.
Returns:
True if drag'n'drop should be enabled for the specified element, false otherwise.

statusChanged

public void statusChanged(IGridJob job)
Description copied from interface: IGridJobStatusListener
Called when job status is changed. Warning! Can be called from working thread, so please from statusChanged() don't call SWT methods directly. Rather use: use: display.syncExec ( new Runnable () { public void run () { } } );

Specified by:
statusChanged in interface IGridJobStatusListener

statusUpdated

public void statusUpdated(IGridJob job)
Description copied from interface: IGridJobStatusListener
Called after every update of job status, even if status wasn't changed during update.
Warning: now this method is called only for listeners, which listen for changes of all jobs registered using method JobManager.addJobStatusListener(IGridJobStatusListener)

Specified by:
statusUpdated in interface IGridJobStatusListener
Parameters:
job - for which, status has been updated

g-Eclipse
Release 1.0.0