Class WizardPropertyPage

All Implemented Interfaces:
IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPropertyPage

public abstract class WizardPropertyPage extends PropertyPage
The wizard property page can wrap a property page around a wizard. The property page shows the first page of the wizard. It is therefore required, that the wizard consists of exactly one page.
Since:
3.4
  • Constructor Details

    • WizardPropertyPage

      public WizardPropertyPage()
  • Method Details

    • getWizard

      public IWizard getWizard()
      Returns:
      the wizard which is wrapped by this page or null if not yet created
    • createWizard

      protected abstract IWizard createWizard()
      Return a wizard.
      Returns:
      an instance of the wizard to be wrapped or null if creation failed
    • applyChanges

      protected abstract void applyChanges()
      Apply the changes made on the property page
    • createContents

      protected Control createContents(Composite parent)
      Creates and returns the SWT control for the customized body of this preference page under the given parent composite.

      This framework method must be implemented by concrete subclasses. Any subclass returning a Composite object whose Layout has default margins (for example, a GridLayout) is expected to set the margins of this Layout to 0 pixels.

      Specified by:
      createContents in class PreferencePage
      Parameters:
      parent - the parent composite
      Returns:
      the new control
    • performOk

      public boolean performOk()
      Notifies that the OK button of this page's container has been pressed.
      Specified by:
      performOk in interface IPreferencePage
      Overrides:
      performOk in class PreferencePage
      Returns:
      false to abort the container's OK processing and true to allow the OK to happen
    • performCancel

      public boolean performCancel()
      The preference page implementation of an IPreferencePage method performs special processing when this page's Cancel button has been pressed.

      This is a framework hook method for subclasses to do special things when the Cancel button has been pressed. The default implementation of this framework method does nothing and returns true.

      Note that UI guidelines on different platforms disagree on whether Cancel should revert changes that have been applied with the Apply button. Windows wants applied changes to persist on Cancel, whereas Mac and GTK consider Apply a preview that should not be saved on Cancel. Eclipse applications typically adhere to the Windows guidelines and just override PreferencePage.performOk() and save preferences there.

      Specified by:
      performCancel in interface IPreferencePage
      Overrides:
      performCancel in class PreferencePage
      Returns:
      false to abort the container's cancel procedure and true to allow the cancel to happen
      See Also:
    • performApply

      protected void performApply()
      Performs special processing when this page's Apply button has been pressed.

      This is a framework hook method for subclasses to do special things when the Apply button has been pressed. The default implementation of this framework method simply calls performOk to simulate the pressing of the page's OK button.

      Overrides:
      performApply in class PreferencePage
      See Also:
    • performDefaults

      protected void performDefaults()
      Performs special processing when this page's Defaults button has been pressed.

      This is a framework hook method for subclasses to do special things when the Defaults button has been pressed. Subclasses may override, but should call super.performDefaults.

      Overrides:
      performDefaults in class PreferencePage