Interface IWorkbenchPart3
- All Superinterfaces:
IAdaptable, IWorkbenchPart, IWorkbenchPart2
- All Known Implementing Classes:
AbstractDebugView, AbstractDecoratedTextEditor, AbstractMultiEditor, AbstractTextEditor, CommonNavigator, CommonSourceNotFoundEditor, CompareEditor, ContentOutline, E4PartWrapper, EditorPart, ErrorEditorPart, ErrorViewPart, org.eclipse.ui.internal.views.markers.ExtendedMarkersView, FormEditor, FormPage, MarkerSupportView, MultiEditor, MultiPageEditorPart, PageBookView, ProjectExplorer, PropertySheet, SharedHeaderFormEditor, StatusTextEditor, TemplatesView, TextEditor, ViewIntroAdapterPart, ViewPart, WorkbenchPart
A part can provide arbitrary properties. The properties will be persisted
between sessions by the part reference, and will be available from the part
reference as well as the part. The properties can only be set on a part, not
on the reference. The properties will be available to the IPresentablePart.
Setting a property must fire a PropertyChangeEvent.
- Since:
- 3.3
-
Field Summary
Fields inherited from interface IWorkbenchPart
PROP_TITLE -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener for changes in the arbitrary properties set.Return an unmodifiable map of the arbitrary properties.getPartProperty(String key) Return the value for the arbitrary property key, ornull.voidRemove a change listener from the arbitrary properties set.voidsetPartProperty(String key, String value) Set an arbitrary property on the part.Methods inherited from interface IAdaptable
getAdapterMethods inherited from interface IWorkbenchPart
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocusMethods inherited from interface IWorkbenchPart2
getContentDescription, getPartName
-
Method Details
-
addPartPropertyListener
Add a listener for changes in the arbitrary properties set.Note: this is a different set of properties than the ones covered by the IWorkbenchPartConstants.PROP_* constants.
- Parameters:
listener- Must not benull.
-
removePartPropertyListener
Remove a change listener from the arbitrary properties set.Note: this is a different set of properties than the ones covered by the IWorkbenchPartConstants.PROP_* constants.
- Parameters:
listener- Must not benull.
-
getPartProperty
-
setPartProperty
Set an arbitrary property on the part. It is the implementor's responsibility to fire the corresponding PropertyChangeEvent.A default implementation has been added to WorkbenchPart.
- Parameters:
key- the arbitrary property. Must not benull.value- the property value. Anullvalue will remove that property.
-
getPartProperties
-