g-Eclipse
Release 1.0.0

eu.geclipse.batch.ui.editors
Class QueueEditor

java.lang.Object
  extended by FormEditor
      extended by eu.geclipse.batch.ui.editors.QueueEditor

public class QueueEditor
extends FormEditor

The QueueEditor class is responsible for instantiating a GUI multi-page editor for editing files with the *.qdl extension. Such files have an XML content that describe the configuration of Grid Batch Queues. The QueueEditor contains three pages: 1) a page for manipulating simple Batch Queue configuration settings, 2) a page for manipulating advanced Batch Queue configuration settings, 3) a raw source editor for editing the raw XML content of the *.qdl file.


Constructor Summary
QueueEditor()
          QueueEditor Default Constructor
 
Method Summary
 Diagnostic analyzeResourceProblems(Resource resource, java.lang.Exception exception)
          This looks up a string in plug-in.properties, making a substitution.
 void dispose()
           
 void doSave(IProgressMonitor monitor)
           
 void doSaveAs()
           
 EditingDomain getEditingDomain()
           
 void getQdlModel()
          Responsible for de-serializing the model from the resource file.
 ISelection getSelection()
           
 void init(IEditorSite site, IEditorInput editorInput)
           
 boolean isModelRefreshed()
           
 boolean isSaveAsAllowed()
           
 void setDirty(boolean dirtyFlag)
          This method set's the dirty status of the editor.
 void setSelection(ISelection selection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueEditor

public QueueEditor()
QueueEditor Default Constructor

Method Detail

setDirty

public void setDirty(boolean dirtyFlag)
This method set's the dirty status of the editor.

Parameters:
dirtyFlag - If TRUE then the page is Dirty and a Save operation is needed.

doSave

public void doSave(IProgressMonitor monitor)

dispose

public void dispose()

doSaveAs

public void doSaveAs()

isSaveAsAllowed

public boolean isSaveAsAllowed()

getEditingDomain

public EditingDomain getEditingDomain()

isModelRefreshed

public boolean isModelRefreshed()
Returns:
true if the the QDL Model was refreshed / changed. This could be caused by an external editor.

init

public void init(IEditorSite site,
                 IEditorInput editorInput)

getSelection

public ISelection getSelection()
Returns:
editorSelection

setSelection

public void setSelection(ISelection selection)
Parameters:
selection -

getQdlModel

public void getQdlModel()
Responsible for de-serializing the model from the resource file. The resource is passed to the getResourceRoot method.


analyzeResourceProblems

public Diagnostic analyzeResourceProblems(Resource resource,
                                          java.lang.Exception exception)
This looks up a string in plug-in.properties, making a substitution. Returns a diagnostic describing the errors and warnings listed in the resource and the specified exception

Parameters:
resource -
exception -
Returns:
Diagnostic

g-Eclipse
Release 1.0.0