Class ValidationDialog

All Implemented Interfaces:
IValidationMessage, IPageChangeProvider, IRunnableContext, IShellProvider, IWizardContainer, IWizardContainer2

public class ValidationDialog extends WizardDialog implements IValidationMessage
Template validation dialog box for a large composite. On top of this composite is created a banner like the "New Wizard" does, and the bottom contains the OK and Cancel buttons.
Christopher Mindus
  • Constructor Details

    • ValidationDialog

      public ValidationDialog(Shell parent, Image dialogWindowIcon, String title, String banner, ImageDescriptor image)
      Create the dialog.
      parent - The parent shell.
  • Method Details

    • configureShell

      protected void configureShell(Shell newShell)
      Configures the new shell.
      configureShell in class WizardDialog
    • openModal

      public boolean openModal()
      Processes the dialog.
      true for OK, false for cancel.
    • createComposite

      protected Composite createComposite(Composite parent)
      Override to create the main composite of the dialog.
    • getValidatorManager

      public ValidatorManager getValidatorManager()
      Gets the validator manager.
    • validate

      public boolean validate()
      Validates the entire dialog.
      true if all validates OK (with possible warnings), false otherwise.
    • onValidate

      public void onValidate(boolean isValid)
      Call to inform validity of all validators.
      Specified by:
      onValidate in interface IValidationMessage
      isValid - true if valid, false otherwise.
    • performFinish

      public boolean performFinish()
      Finishes the dialog. Override to perform custom processing. This method returns true by default.
      true to indicate the finish request was accepted, and false to indicate that the finish request was refused.