g-Eclipse
Release 1.0.0

eu.geclipse.servicejob.ui.wizard
Class AbstractServiceJobWizardNode

java.lang.Object
  extended by Wizard
      extended by eu.geclipse.servicejob.ui.wizard.AbstractServiceJobWizardNode
All Implemented Interfaces:
IServiceJobWizardNode, IProjectSelectionProvider, IInitializableWizard, IWizardSelectionNode

public abstract class AbstractServiceJobWizardNode
extends Wizard
implements IServiceJobWizardNode, IProjectSelectionProvider

Abstract class of the IServiceJobWizardNode. It should be used instead of IServiceJobWizardNode if there should be created file containing informations about the service job during finishing wizard.


Constructor Summary
AbstractServiceJobWizardNode()
           
 
Method Summary
 boolean canHandle(IVirtualOrganization vo)
          Method to determine if it makes sense to create service job for given virtual organisation.
 Point getExtent()
           
 IGridProject getGridProject()
           
 Image getIcon()
          Returns the icon to be displayed in the WizardSelectionListPage.
 java.util.List<IGridResource> getPreselectedResources()
          Method to access instances of IGridResources that were passed to wizard when launching it e.g. from context menu.
 IGridProject getSelectedProject()
          Gets selected project for this service job.
 java.lang.String getServiceJobName()
          Method to access structural service job's name which is created by this wizard.
 IWizard getTempWizard()
          This method is for accessing reference to wizard that will be returned by IWizardNode#getWizard() method.
 java.lang.String getWindowTitle()
           
 boolean init(java.lang.Object data)
          This method is called after the creation of the wizard.
 boolean performFinish()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.servicejob.ui.interfaces.IServiceJobWizardNode
getPluginID, getResourcesNames, getServiceJobInputData
 
Methods inherited from interface eu.geclipse.ui.wizards.wizardselection.IWizardSelectionNode
getName
 

Constructor Detail

AbstractServiceJobWizardNode

public AbstractServiceJobWizardNode()
Method Detail

getWindowTitle

public java.lang.String getWindowTitle()

init

public boolean init(java.lang.Object data)
Description copied from interface: IInitializableWizard
This method is called after the creation of the wizard.

Specified by:
init in interface IInitializableWizard
Parameters:
data - data object passed to the wizard for the initialization.
Returns:
true if initialization was successful, false otherwise.

performFinish

public boolean performFinish()

getIcon

public Image getIcon()
Description copied from interface: IWizardSelectionNode
Returns the icon to be displayed in the WizardSelectionListPage.

Specified by:
getIcon in interface IWizardSelectionNode
Returns:
the icon to display.

getExtent

public Point getExtent()

getSelectedProject

public IGridProject getSelectedProject()
Description copied from interface: IServiceJobWizardNode
Gets selected project for this service job.

Specified by:
getSelectedProject in interface IServiceJobWizardNode
Returns:
IVirtualOrganization selected in VO selection page.

getPreselectedResources

public java.util.List<IGridResource> getPreselectedResources()
Description copied from interface: IServiceJobWizardNode
Method to access instances of IGridResources that were passed to wizard when launching it e.g. from context menu. This method may return an empty list or even null.

Specified by:
getPreselectedResources in interface IServiceJobWizardNode
Returns:
List of IGridResource obtained from selection from which wizard was launched. If wizard wasn't launched from selection, or this selection doesn't contain any IGridResource objects this list will be empty.

getServiceJobName

public java.lang.String getServiceJobName()
Description copied from interface: IServiceJobWizardNode
Method to access structural service job's name which is created by this wizard.

Specified by:
getServiceJobName in interface IServiceJobWizardNode
Returns:
Name of the structural service job.

getGridProject

public IGridProject getGridProject()
Specified by:
getGridProject in interface IProjectSelectionProvider

canHandle

public boolean canHandle(IVirtualOrganization vo)
Description copied from interface: IServiceJobWizardNode
Method to determine if it makes sense to create service job for given virtual organisation.

Specified by:
canHandle in interface IServiceJobWizardNode
Parameters:
vo - virtual organisation
Returns:
true if service job can be created for resources in given VO, false otherwise.

getTempWizard

public IWizard getTempWizard()
Description copied from interface: IWizardSelectionNode
This method is for accessing reference to wizard that will be returned by IWizardNode#getWizard() method. The difference and reason for introducing this method is that calling getWizard() may result in changing node's state, while this method will only return instance of node's wizard, but won't change any node's fields (e.g. won't set wizard or isCreated fields).

Specified by:
getTempWizard in interface IWizardSelectionNode
Returns:
instance of IWizard that IWizardNode#getWizard() would return

g-Eclipse
Release 1.0.0