public abstract class WizardPropertyPage extends PropertyPage
ERROR, INFORMATION, NONE, WARNING| Constructor and Description |
|---|
WizardPropertyPage() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyChanges()
Apply the changes made on the property page
|
protected Control |
createContents(Composite parent)
Creates and returns the SWT control for the customized body
of this preference page under the given parent composite.
|
protected abstract IWizard |
createWizard()
Return a wizard.
|
IWizard |
getWizard() |
protected void |
performApply()
Performs special processing when this page's Apply button has been pressed.
|
boolean |
performCancel()
The preference page implementation of an
IPreferencePage
method performs special processing when this page's Cancel button has
been pressed. |
protected void |
performDefaults()
Performs special processing when this page's Defaults button has been pressed.
|
boolean |
performOk()
Notifies that the OK button of this page's container has been pressed.
|
getElement, setElementapplyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButtonconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomputeSize, isValid, okToLeave, setContainer, setSizecreateControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisiblepublic IWizard getWizard()
protected abstract IWizard createWizard()
protected abstract void applyChanges()
protected Control createContents(Composite parent)
This framework method must be implemented by concrete subclasses. Any
subclass returning a Composite object whose Layout
has default margins (for example, a GridLayout) are expected to
set the margins of this Layout to 0 pixels.
createContents in class PreferencePageparent - the parent compositepublic boolean performOk()
performOk in interface IPreferencePageperformOk in class PreferencePagefalse to abort the container's OK
processing and true to allow the OK to happenpublic boolean performCancel()
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.
performCancel in interface IPreferencePageperformCancel in class PreferencePagefalse to abort the container's cancel
procedure and true to allow the cancel to happenIPreferencePage.performCancel()protected void performApply()
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.
performApply in class PreferencePagePreferencePage.performOk(),
PreferencePage.performCancel()protected void performDefaults()
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
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.