public abstract class PropertyPage extends PreferencePage implements IWorkbenchPropertyPage
IWorkbenchPropertyPage
). The implementation is a JFace
preference page with an adapatable element.
Subclasses must implement the createContents
framework method
to supply the property page's main control.
Subclasses should extend the doComputeSize
framework method to
compute the size of the page's control.
Subclasses may override the performOk
,
performApply
,performDefaults
,
performCancel
, and performHelp
framework
methods to react to the standard button events.
Subclasses may call the noDefaultAndApplyButton
framework
method before the page's control has been created to suppress the standard
Apply and Defaults buttons.
IWorkbenchPropertyPage
ERROR, INFORMATION, NONE, WARNING
Constructor and Description |
---|
PropertyPage()
Creates a new property page.
|
Modifier and Type | Method and Description |
---|---|
IAdaptable |
getElement()
Returns the object that owns the properties shown in this page.
|
void |
setElement(IAdaptable element)
Sets the element that owns properties shown on this page.
|
applyData, applyDialogFont, computeSize, contributeButtons, createContents, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performDefaults, performHelp, performOk, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
public IAdaptable getElement()
IWorkbenchPropertyPage
getElement
in interface IWorkbenchPropertyPage
public void setElement(IAdaptable element)
setElement
in interface IWorkbenchPropertyPage
element
- the elementPropertyDialogAction
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.