| org.eclipse.ui.IWorkbenchPart3
All known Subclasses: org.eclipse.ui.part.WorkbenchPart,
IWorkbenchPart3 | public interface IWorkbenchPart3 extends IWorkbenchPart2(Code) | | 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 |
addPartPropertyListener | public void addPartPropertyListener(IPropertyChangeListener listener)(Code) | | 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 be null . |
getPartProperties | public Map getPartProperties()(Code) | | Return an unmodifiable map of the arbitrary properties. This method can
be used to save the properties during workbench save/restore.
A Map of the properties. Must not be null . |
getPartProperty | public String getPartProperty(String key)(Code) | | Return the value for the arbitrary property key, or null .
Parameters: key - the arbitrary property. Must not be null . the property value, or null . |
removePartPropertyListener | public void removePartPropertyListener(IPropertyChangeListener listener)(Code) | | 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 be null . |
setPartProperty | public void setPartProperty(String key, String value)(Code) | | 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 be null . Parameters: value - the property value. A null value will removethat property. |
|
|