| org.eclipse.ui.IWorkbenchPartReference
All known Subclasses: org.eclipse.ui.internal.WorkbenchPartReference,
IWorkbenchPartReference | public interface IWorkbenchPartReference (Code) | | Implements a reference to a IWorkbenchPart.
The IWorkbenchPart will not be instanciated until the part
becomes visible or the API getPart is sent with true;
This interface is not intended to be implemented by clients.
|
addPartPropertyListener | public void addPartPropertyListener(IPropertyChangeListener listener)(Code) | | Add a listener for changes in the arbitrary properties set.
Parameters: listener - Must not be null . since: 3.3 |
getContentDescription | public String getContentDescription()(Code) | | Returns the content description for the part (or the empty string if none)
the content description for the part since: 3.0 |
getPart | public IWorkbenchPart getPart(boolean restore)(Code) | | Returns the IWorkbenchPart referenced by this object.
Returns null if the editors was not instantiated or
it failed to be restored. Tries to restore the editor
if restore is true.
|
getPartName | public String getPartName()(Code) | | Returns the name of the part, as it should be shown in tabs.
the part name since: 3.0 |
getPartProperty | public String getPartProperty(String key)(Code) | | Return an arbitrary property from the reference. If the part has been
instantiated, it just delegates to the part. If not, then it looks in its
own cache of properties. If the property is not available or the part has
never been instantiated, it can return null .
Parameters: key - The property to return. Must not be null . The String property, or null . since: 3.3 |
isDirty | public boolean isDirty()(Code) | | Returns whether the part is dirty (i.e. has unsaved changes).
true if the part is dirty, false otherwise since: 3.2 (previously existed on IEditorReference) |
removePartPropertyListener | public void removePartPropertyListener(IPropertyChangeListener listener)(Code) | | Remove a listener for changes in the arbitrary properties set.
Parameters: listener - Must not be null . since: 3.3 |
|
|