Class ComparePreferencePage

All Implemented Interfaces:
IDialogPage, IMessageProvider, IPreferencePage, IWorkbenchPreferencePage

public class ComparePreferencePage extends PreferencePage implements IWorkbenchPreferencePage
  • Field Details

  • Constructor Details

    • ComparePreferencePage

      public ComparePreferencePage()
  • Method Details

    • initDefaults

      public static void initDefaults(IPreferenceStore store)
    • init

      public void init(IWorkbench workbench)
      Description copied from interface: IWorkbenchPreferencePage
      Initializes this preference page for the given workbench.

      This method is called automatically as the preference page is being created and initialized. Clients must not call this method.

      Specified by:
      init in interface IWorkbenchPreferencePage
      workbench - the workbench
    • performOk

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

      protected void performDefaults()
      Description copied from class: PreferencePage
      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.

      performDefaults in class PreferencePage
    • dispose

      public void dispose()
      Description copied from class: DialogPage
      The DialogPage implementation of this IDialogPage method disposes of the page image if it has one. Subclasses may extend.
      Specified by:
      dispose in interface IDialogPage
      dispose in class DialogPage
    • getSaveAllEditors

      public static boolean getSaveAllEditors()
    • setSaveAllEditors

      public static void setSaveAllEditors(boolean value)
    • createContents

      protected Control createContents(Composite parent)
      Description copied from class: PreferencePage
      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
      parent - the parent composite
      the new control
    • applyData

      public void applyData(Object data)
      Description copied from class: PreferencePage
      Applies the given data to this page.

      It is up to the subclasses to specify the contract and the data format. The contract is not guaranteed if the subclass is in an internal package.

      Note: The implementation must silently ignore all unknown data.

      The default implementation does nothing.

      applyData in class PreferencePage
      data - the data as specified by the subclass