public interface IWorkbenchPropertyPage extends IPreferencePage
Clients should implement this interface and include the name of their class
in an extension contributed to the workbench's property page extension point
(named "org.eclipse.ui.propertyPages"
).
For example, the plug-in's XML markup might contain:
<extension point="org.eclipse.ui.propertyPages"> <page id="com.example.myplugin.props" name="Knobs" objectClass="org.eclipse.core.resources.IResource" class="com.example.myplugin.MyPropertyPage" /> </extension>
Property pages that support multiple selected objects should
implement IWorkbenchPropertyPageMulti
instead.
IWorkbenchPropertyPageMulti
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 object that owns the properties shown in this page.
|
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
IAdaptable getElement()
void setElement(IAdaptable element)
getElement
is called.
As of Eclipse 3.2 the org.eclipse.ui.propertyPages extension point now supports non IAdaptable inputs. An input that is not an IAdaptable will be wrapped in an IAdaptable by the workbench before it is forwarded to this method.
element
- the object that owns the properties shown in this pagePropertyDialogAction
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.