g-Eclipse
Release 1.0.0

eu.geclipse.jsdl.ui.adapters.jsdl
Class ResourcesTypeAdapter

java.lang.Object
  extended by AdapterImpl
      extended by eu.geclipse.jsdl.ui.adapters.jsdl.JsdlAdaptersFactory
          extended by eu.geclipse.jsdl.ui.adapters.jsdl.ResourcesTypeAdapter

public final class ResourcesTypeAdapter
extends JsdlAdaptersFactory

ResourcesTypeAdapter Class This class provides adapters for manipulating Resources elements through the Resources Page of the JSDL editor. Supported Resources elements are:

- Candidate Hosts

- FileSystem

- OperatingSystem

- CPUArchitecture


Constructor Summary
ResourcesTypeAdapter(JobDefinitionType jobDefinitionRoot)
          Constructs a new ResourcesTypeAdapter
 
Method Summary
 void addCandidateHosts(TableViewer tableViewer, java.lang.Object[] value)
          Method that adds a list of Candidate Hosts .
 void addFileSystem(TableViewer tableViewer, java.lang.Object[] value)
          Method that adds a list of File Systems.
 void attachToCPUArchitecture(Combo widget)
          The attach point that handles the Combo widget which is responsible for the Resources CPUArchitecture element.
 void attachToDelete(Button button, TableViewer tableViewer)
          Adapter interface to attach to the Delete button.
 void attachToExclusiveExecution(Combo widget)
          The attach point that handles the Combo widget which is responsible for the Resources ExclusiveExecution element.
 void attachToFileSystems(TableViewer widget)
          The attach point that handles the TableViewer widget which is responsible for the Resources FileSystem element.
 void attachToHostName(TableViewer widget)
          The attach point that handles the TableViewer widget which is responsible for the Resources CandidateHosts element.
 void attachToIndividualCPUSpeed(Text text, Combo combo)
          The attach point that handles the Text widget which is responsible for the Resources IndividualCPUSpeed element.
 void attachToOSDescription(Text widget)
          The attach point that handles the Text widget which is responsible for the Resources OperatingSystemDescription element.
 void attachToOSType(Combo widget)
          The attach point that handles the Combo widget which is responsible for the Resources OperatingSystem element.
 void attachToOSVersion(Text widget)
          The attach point that handles the Text widget which is responsible for the Resources OperatingSystemVersion element.
 void load()
          Method which populates the content of the underlying model to the widgets that are attached to this adapter.
 void performEdit(TableViewer tableViewer, java.lang.Object value)
          Method that edits a list a FileSystem .
 void setContent(JobDefinitionType jobDefinitionRoot)
          Allows to set the adapter's content on demand and not through the constructor.
 
Methods inherited from class eu.geclipse.jsdl.ui.adapters.jsdl.JsdlAdaptersFactory
adapt, adaptAllNew, adaptNew, addListener, dispose, fireNotifyChanged, getRootAdapterFactory, isFactoryForType, notifyChanged, removeListener, setParentAdapterFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcesTypeAdapter

public ResourcesTypeAdapter(JobDefinitionType jobDefinitionRoot)
Constructs a new ResourcesTypeAdapter

Parameters:
jobDefinitionRoot - . The root element of a JSDL document (JobDefinitionType).
Method Detail

setContent

public void setContent(JobDefinitionType jobDefinitionRoot)
Allows to set the adapter's content on demand and not through the constructor.

Parameters:
jobDefinitionRoot - The root element of a JSDL document.

attachToHostName

public void attachToHostName(TableViewer widget)
The attach point that handles the TableViewer widget which is responsible for the Resources CandidateHosts element.

Parameters:
widget - The TableViewer widget responsible for Resources CandidateHosts element.

attachToFileSystems

public void attachToFileSystems(TableViewer widget)
The attach point that handles the TableViewer widget which is responsible for the Resources FileSystem element.

Parameters:
widget - The TableViewer widget responsible for Resources FileSystem element.

attachToDelete

public void attachToDelete(Button button,
                           TableViewer tableViewer)
Adapter interface to attach to the Delete button.

Parameters:
button - The SWT Button which is associated with an SWT list on the page and is responsible to delete elements from this list.
tableViewer - The SWT TableViewer containing the elements to be deleted.

addCandidateHosts

public void addCandidateHosts(TableViewer tableViewer,
                              java.lang.Object[] value)
Method that adds a list of Candidate Hosts .

Parameters:
tableViewer - The TableViewer that will hold the Candidate Hosts.
value - The list of Candidate Hosts.

addFileSystem

public void addFileSystem(TableViewer tableViewer,
                          java.lang.Object[] value)
Method that adds a list of File Systems.

Parameters:
tableViewer - The TableViewer that will hold the File Systems.
value - The list of File Systems.

performEdit

public void performEdit(TableViewer tableViewer,
                        java.lang.Object value)
Method that edits a list a FileSystem .

Parameters:
tableViewer - The TableViewer that will hold the Candidate Hosts.
value - The new value of the File System.

attachToOSType

public void attachToOSType(Combo widget)
The attach point that handles the Combo widget which is responsible for the Resources OperatingSystem element. This attach point provides a SelectionListener that listens to changes in the text box and commits this changes to the underlying model.

Parameters:
widget - The Text widget responsible for Resources Operating System element.

attachToCPUArchitecture

public void attachToCPUArchitecture(Combo widget)
The attach point that handles the Combo widget which is responsible for the Resources CPUArchitecture element. This attach point provides a SelectionListener that listens to changes in the text box and commits this changes to the underlying model.

Parameters:
widget - The Text widget responsible for Resources CPUArchitecture element.

attachToOSVersion

public void attachToOSVersion(Text widget)
The attach point that handles the Text widget which is responsible for the Resources OperatingSystemVersion element. This attach point provides a ModifyListener that listens to changes in the text box and commits this changes to the underlying model.

Parameters:
widget - The Text widget responsible for Resources OperatingSystemVersion element.

attachToOSDescription

public void attachToOSDescription(Text widget)
The attach point that handles the Text widget which is responsible for the Resources OperatingSystemDescription element. This attach point provides a ModifyListener that listens to changes in the text box and commits this changes to the underlying model.

Parameters:
widget - The Text widget responsible for Resources OperatingSystemDescription element.

attachToIndividualCPUSpeed

public void attachToIndividualCPUSpeed(Text text,
                                       Combo combo)
The attach point that handles the Text widget which is responsible for the Resources IndividualCPUSpeed element. This attach point provides a ModifyListener that listens to changes in the text box and commits this changes to the underlying model.

Parameters:
text - The Text widget responsible for Resources IndividualCPUSpeed element.
combo - The Combo widget responsible for Resources IndividualCPUSpeed boundary.

attachToExclusiveExecution

public void attachToExclusiveExecution(Combo widget)
The attach point that handles the Combo widget which is responsible for the Resources ExclusiveExecution element. This attach point provides a SelectionListener that listens to changes in the text box and commits this changes to the underlying model.

Parameters:
widget - The Text widget responsible for Resources ExclusiveExecution element.

load

public void load()
Method which populates the content of the underlying model to the widgets that are attached to this adapter. The method is called from the JobDefinitionPage when the appropriate widgets are created and also every time the page becomes active.


g-Eclipse
Release 1.0.0