g-Eclipse
Release 1.0.0

eu.geclipse.jsdl.ui.adapters.jsdl
Class DataStageTypeAdapter

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

public class DataStageTypeAdapter
extends JsdlAdaptersFactory

DataStageTypeAdapter Class

This class provides adapters for manipulating Data Staging elements through the Data Staging Page of the JSDL editor. Supported DataStaging elements are:

- FileName

- FileSystemName

- CreationFlag

- DeleteOnTermination

- Source

- Target


Constructor Summary
DataStageTypeAdapter(JobDefinitionType jobDefinitionRoot)
          Constructs a new DataStageTypeAdapter
 
Method Summary
 void attachToDelete(Button button, TableViewer viewer)
          Adapter interface to attach to the DataStage Delete button widget.
 void attachToStageIn(TableViewer widget)
          Adapter interface to attach to the DataStaging Stage-In Table Viewer widget
 void attachToStageOut(TableViewer widget)
          Adapter interface to attach to the DataStaging Stage-Out Table Viewer widget
 void load()
          This method populates the model content to the widgets registered with the DataStageType adapter.
 void performAdd(TableViewer tableViewer, java.util.ArrayList<DataStagingType> dataStageList)
          Add's a new DataStaging element in the JSDL model.
 void performEdit(TableViewer tableViewer, java.util.ArrayList<DataStagingType> dataStageList)
          Edit the attributes of the selected object in the TableViewer.
 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

DataStageTypeAdapter

public DataStageTypeAdapter(JobDefinitionType jobDefinitionRoot)
Constructs a new DataStageTypeAdapter

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.

attachToStageIn

public void attachToStageIn(TableViewer widget)
Adapter interface to attach to the DataStaging Stage-In Table Viewer widget

Parameters:
widget - The TableViewer in which all the Stage-In elements are displayed. The Stage-In elements are those elements that contain only the Source URI. The Target URI on these elements is null. Elements which contain Stage-In and Stage-Out are also shown in this table viewer. This method add's a filter to the table viewer so as to show only DataStage elements that contain a Source URI.

attachToStageOut

public void attachToStageOut(TableViewer widget)
Adapter interface to attach to the DataStaging Stage-Out Table Viewer widget

Parameters:
widget - The TableViewer in which all the Stage-In elements are displayed. The Stage-Out elements are those elements that contain only the Target location. The Source location on these elements is null. Elements which contain Stage-In and Stage-Out are also shown in this table viewer. This method add's a filter to the table viewer so as to show only DataStage elements that contain a Target URI.

attachToDelete

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

Parameters:
button - The SWT Button that triggered the Delete event.
viewer - The org.eclipse.jface.viewers.TableViewer containing the element to be deleted.

performAdd

public void performAdd(TableViewer tableViewer,
                       java.util.ArrayList<DataStagingType> dataStageList)
Add's a new DataStaging element in the JSDL model. The new DataStaging element is added as a child of the JobDescription element. The new DataStaging element can be a Stage-In element (containing a Source URI) or a Stage-Out element (containing a Target URI).

Parameters:
tableViewer - The TableViewer to add the new DataStaging element. If the new DataStaging element is a Stage-In element, then the table viewer responsible for such elements should be passed here. The opposite is valid for Stage-Out elements.
dataStageList - The list containing the new DataStaqe elements which were retrieved from the respective Stage-In or Stage-Out dialogs

performEdit

public void performEdit(TableViewer tableViewer,
                        java.util.ArrayList<DataStagingType> dataStageList)
Edit the attributes of the selected object in the TableViewer.

Parameters:
tableViewer - The SWT TableViewer that contains the Structural Features
dataStageList - The list containing the selected DataStage elements.

load

public void load()
This method populates the model content to the widgets registered with the DataStageType adapter.


g-Eclipse
Release 1.0.0