net.refractions.udig.validation.ui
Class ValidationDialog

java.lang.Object
  extended by TitleAreaDialog
      extended by net.refractions.udig.validation.ui.ValidationDialog

public class ValidationDialog
extends TitleAreaDialog


Field Summary
static java.lang.String BLACKBOARD_KEY
          Constant to use as the key for storing the validation processor on the blackboard (for saving the state of the validation dialog box)
 
Constructor Summary
protected ValidationDialog(Shell parentShell)
           
  ValidationDialog(Shell parentShell, ILayer[] layers)
           
 
Method Summary
protected  Control createButtonBar(Composite parent)
           
protected  void createButtonsForButtonBar(Composite parent)
           
protected  Control createDialogArea(Composite parent)
           
protected  ProgressMonitorPart createProgressMonitorPart(Composite composite, GridLayout pmlayout)
          Create the progress monitor part in the receiver.
protected  TableViewer createTable(Table table)
           
protected  Composite createValidationEditArea(Composite parent)
          Creates the validations edit area of the dialog.
protected  Composite createValidationSelectionArea(Composite parent)
          Creates the validation test suite selection area of the dialog.
 Button getCancelButton()
           
 ValidationDialog getDialog()
           
static java.lang.String getTypeRefLayer(java.lang.String typeRef)
           
static boolean isTypeRef(java.lang.String argName)
          Based on the name of the argument, this function determines if it is a typeRef or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLACKBOARD_KEY

public static final java.lang.String BLACKBOARD_KEY
Constant to use as the key for storing the validation processor on the blackboard (for saving the state of the validation dialog box)

See Also:
Constant Field Values
Constructor Detail

ValidationDialog

public ValidationDialog(Shell parentShell,
                        ILayer[] layers)

ValidationDialog

protected ValidationDialog(Shell parentShell)
Method Detail

getDialog

public ValidationDialog getDialog()

getCancelButton

public Button getCancelButton()

createButtonBar

protected Control createButtonBar(Composite parent)

createButtonsForButtonBar

protected void createButtonsForButtonBar(Composite parent)

createDialogArea

protected Control createDialogArea(Composite parent)

createValidationSelectionArea

protected Composite createValidationSelectionArea(Composite parent)
                                           throws java.lang.Exception
Creates the validation test suite selection area of the dialog. This area displays a tree of validations that the user may select and modify. The first tier of the tree contains the available validation plugins, and the second tier contains instances of the test.

Returns:
the composite used for the validations selection area
Throws:
java.lang.Exception

createValidationEditArea

protected Composite createValidationEditArea(Composite parent)
Creates the validations edit area of the dialog. This area displays the name and description of the validation test currently selected. Instances of plugins may only be viewed, while instances of validation tests (within the testSuite) may be modified.

Returns:
the composite used for launch configuration editing

createTable

protected TableViewer createTable(Table table)

createProgressMonitorPart

protected ProgressMonitorPart createProgressMonitorPart(Composite composite,
                                                        GridLayout pmlayout)
Create the progress monitor part in the receiver.

Parameters:
composite -
pmlayout -
Returns:
ProgressMonitorPart

isTypeRef

public static boolean isTypeRef(java.lang.String argName)
Based on the name of the argument, this function determines if it is a typeRef or not.

Parameters:
argName -
Returns:

getTypeRefLayer

public static java.lang.String getTypeRefLayer(java.lang.String typeRef)