Class GeneralPreferencePage

  • All Implemented Interfaces:
    IValidationMessage, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.ui.IWorkbenchPreferencePage

    public class GeneralPreferencePage
    extends org.eclipse.jface.preference.PreferencePage
    implements org.eclipse.ui.IWorkbenchPreferencePage, IValidationMessage
    The Designer page in the Preferences for the Panel Designer.
    Author:
    Christopher Mindus
    • Field Summary

      • Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

        ERROR, INFORMATION, NONE, WARNING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected org.eclipse.swt.widgets.ControlcreateContents​(org.eclipse.swt.widgets.Composite parent)
      Creates the controls for the page.
      voidinit​(org.eclipse.ui.IWorkbench workbench)
      Initializes the page.
      voidonValidate​(boolean isValid)
      Called when validated.
      protected voidperformApply()
      Applies the preferences changes.
      booleanperformCancel()
      Cancels the preferences page.
      protected voidperformDefaults()
      Sets the default preferences.
      booleanperformOk()
      Save the color preference to the preference store.
      • Methods inherited from class org.eclipse.jface.preference.PreferencePage

        applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
      • Methods inherited from class org.eclipse.jface.dialogs.DialogPage

        convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage

        createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
      • Methods inherited from interface org.eclipse.jface.preference.IPreferencePage

        computeSize, isValid, okToLeave, setContainer, setSize
    • Constructor Detail

      • GeneralPreferencePage

        public GeneralPreferencePage()
        Constructor.
    • Method Detail

      • init

        public void init​(org.eclipse.ui.IWorkbench workbench)
        Initializes the page.
        Specified by:
        init in interface org.eclipse.ui.IWorkbenchPreferencePage
      • createContents

        protected org.eclipse.swt.widgets.Control createContents​(org.eclipse.swt.widgets.Composite parent)
        Creates the controls for the page.
        Specified by:
        createContents in class org.eclipse.jface.preference.PreferencePage
      • performDefaults

        protected void performDefaults()
        Sets the default preferences.
        Overrides:
        performDefaults in class org.eclipse.jface.preference.PreferencePage
      • performApply

        protected void performApply()
        Applies the preferences changes.
        Overrides:
        performApply in class org.eclipse.jface.preference.PreferencePage
      • performOk

        public boolean performOk()
        Save the color preference to the preference store.
        Specified by:
        performOk in interface org.eclipse.jface.preference.IPreferencePage
        Overrides:
        performOk in class org.eclipse.jface.preference.PreferencePage
      • performCancel

        public boolean performCancel()
        Cancels the preferences page.
        Specified by:
        performCancel in interface org.eclipse.jface.preference.IPreferencePage
        Overrides:
        performCancel in class org.eclipse.jface.preference.PreferencePage
      • onValidate

        public void onValidate​(boolean isValid)
        Called when validated.
        Specified by:
        onValidate in interface IValidationMessage
        Parameters:
        isValid - true if valid, false otherwise.