g-Eclipse
Release 1.0.0

eu.geclipse.ui.views
Class GridJobView

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.ElementManagerViewPart
                  extended by eu.geclipse.ui.views.GridJobView
All Implemented Interfaces:
IGridJobStatusListener, IGridModelListener, IFilterConfigurationListener, java.util.EventListener

public class GridJobView
extends ElementManagerViewPart
implements IGridJobStatusListener, IFilterConfigurationListener

Job view that shows all jobs that are currently managed by the default implementation of the IGridJobManager interface


Constructor Summary
GridJobView()
           
 
Method Summary
 void configurationChanged()
          Called by GridFilterConfigurationsManager, when any property in configuration was changed (e.g. new configuration added, configuration deleted, or changed).
 void dispose()
           
 void filterConfigurationSelected(ViewerFilter[] filters)
          Called when user changed current configuration
 void init(IViewSite site, IMemento mem)
           
 boolean isDragSource(IGridElement element)
          Determines if drag'n'drop should be made available for the specified element.
 void saveState(IMemento mem)
           
 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
createPartControl, getViewer, gridModelChanged, refreshViewer, setFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.core.model.IGridModelListener
gridModelChanged
 

Constructor Detail

GridJobView

public GridJobView()
Method Detail

dispose

public void dispose()
Overrides:
dispose in class ElementManagerViewPart

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

init

public void init(IViewSite site,
                 IMemento mem)
          throws PartInitException
Throws:
PartInitException

configurationChanged

public void configurationChanged()
Description copied from interface: IFilterConfigurationListener
Called by GridFilterConfigurationsManager, when any property in configuration was changed (e.g. new configuration added, configuration deleted, or changed). Used mainly by ConfigureFiltersAction to update menu items with created configurations

Specified by:
configurationChanged in interface IFilterConfigurationListener

filterConfigurationSelected

public void filterConfigurationSelected(ViewerFilter[] filters)
Description copied from interface: IFilterConfigurationListener
Called when user changed current configuration

Specified by:
filterConfigurationSelected in interface IFilterConfigurationListener
Parameters:
filters - new filters selected by user, which should be applied to the view

saveState

public void saveState(IMemento mem)

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 ElementManagerViewPart
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.

g-Eclipse
Release 1.0.0