g-Eclipse
Release 1.0.0

eu.geclipse.ui.views.jobdetails
Class JobDetailsView

java.lang.Object
  extended by ViewPart
      extended by eu.geclipse.ui.views.jobdetails.JobDetailsView
All Implemented Interfaces:
IGridJobStatusListener, IViewConfiguration

public class JobDetailsView
extends ViewPart
implements IViewConfiguration, IGridJobStatusListener


Nested Class Summary
 class JobDetailsView.JobSelectionProvider
          Selection provider handling currently shown job in this view
 
Field Summary
static java.lang.String ID
          View identifier
 
Constructor Summary
JobDetailsView()
           
 
Method Summary
 void createPartControl(Composite parent)
           
 void dispose()
           
 FormToolkit getFormToolkit()
          This method initializes formToolkit
 IGridJob getInputJob()
           
 JobDetailsView.JobSelectionProvider getJobSelectionProvider()
           
 JobDetailSectionsManager getSectionsManager()
           
 void init(IViewSite site, IMemento currentMemento)
           
 boolean isShowEmptyEnabled()
           
 void refresh()
          Refresh whole view using current input job
 void saveState(IMemento currentMemento)
           
 void selectionChanged(IWorkbenchPart part, ISelection selection)
           
 void setFocus()
           
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
View identifier

See Also:
Constant Field Values
Constructor Detail

JobDetailsView

public JobDetailsView()
Method Detail

getFormToolkit

public FormToolkit getFormToolkit()
This method initializes formToolkit

Specified by:
getFormToolkit in interface IViewConfiguration
Returns:
org.eclipse.ui.forms.widgets.FormToolkit

createPartControl

public void createPartControl(Composite parent)

dispose

public void dispose()

setFocus

public void setFocus()

refresh

public void refresh()
Refresh whole view using current input job

Specified by:
refresh in interface IViewConfiguration

selectionChanged

public void selectionChanged(IWorkbenchPart part,
                             ISelection selection)

isShowEmptyEnabled

public boolean isShowEmptyEnabled()
Specified by:
isShowEmptyEnabled in interface IViewConfiguration
Returns:
true if details with empty value also should be shown on view

getSectionsManager

public JobDetailSectionsManager getSectionsManager()
Specified by:
getSectionsManager in interface IViewConfiguration
Returns:
manager of IJobDetailsSections

init

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

saveState

public void saveState(IMemento currentMemento)

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

getJobSelectionProvider

public JobDetailsView.JobSelectionProvider getJobSelectionProvider()
Returns:
selection provides currently shown job

getInputJob

public IGridJob getInputJob()
Specified by:
getInputJob in interface IViewConfiguration
Returns:
the inputJob

g-Eclipse
Release 1.0.0