Package org.eclipse.ui.internal
Class ViewReference
java.lang.Object
org.eclipse.ui.internal.WorkbenchPartReference
org.eclipse.ui.internal.ViewReference
- All Implemented Interfaces:
ISizeProvider
,IViewReference
,IWorkbenchPartReference
-
Field Summary
Fields inherited from class org.eclipse.ui.internal.WorkbenchPartReference
INTERNAL_PROPERTY_ACTIVE_CHILD_CHANGED, INTERNAL_PROPERTY_CLOSED, INTERNAL_PROPERTY_MAXIMIZED, INTERNAL_PROPERTY_OPENED, INTERNAL_PROPERTY_PINNED, INTERNAL_PROPERTY_VISIBLE, INTERNAL_PROPERTY_ZOOMED, legacyPart, propertyCache, STATE_CREATED, STATE_CREATION_IN_PROGRESS, STATE_DISPOSED, STATE_LAZY
Fields inherited from interface org.eclipse.ui.ISizeProvider
INFINITE
-
Constructor Summary
ConstructorDescriptionViewReference
(IEclipseContext windowContext, IWorkbenchPage page, MPart part, org.eclipse.ui.internal.registry.ViewDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptioncreateErrorPart
(IStatus status) org.eclipse.ui.internal.registry.ViewDescriptor
Returns the name of the part, as it should be shown in tabs.Returns the secondary ID for the view.getSite()
getView
(boolean restore) Returns theIViewPart
referenced by this object.void
initialize
(IWorkbenchPart part) boolean
void
persist()
Methods inherited from class org.eclipse.ui.internal.WorkbenchPartReference
addPartPropertyListener, addPropertyListener, checkReference, computePreferredSize, computeTitle, createPartProperties, doDisposeNestedParts, fireInternalPropertyChange, firePartPropertyChange, firePropertyChange, getContentDescription, getId, getModel, getPage, getPane, getPart, getPartProperty, getRawTitle, getSizeFlags, getTitle, getTitleImage, getTitleToolTip, invalidate, isDirty, isDisposed, isPinned, partPropertyChanged, partPropertyChanged, releaseReferences, removePartPropertyListener, removePropertyListener, setPage, setPinned, subscribe, unsubscribe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IWorkbenchPartReference
addPartPropertyListener, addPropertyListener, getContentDescription, getId, getPage, getPart, getPartProperty, getTitle, getTitleImage, getTitleToolTip, isDirty, removePartPropertyListener, removePropertyListener
-
Constructor Details
-
ViewReference
public ViewReference(IEclipseContext windowContext, IWorkbenchPage page, MPart part, org.eclipse.ui.internal.registry.ViewDescriptor descriptor)
-
-
Method Details
-
persist
public void persist() -
getPartName
Description copied from interface:IWorkbenchPartReference
Returns the name of the part, as it should be shown in tabs.- Specified by:
getPartName
in interfaceIWorkbenchPartReference
- Overrides:
getPartName
in classWorkbenchPartReference
- Returns:
- the part name
-
getSecondaryId
Description copied from interface:IViewReference
Returns the secondary ID for the view.- Specified by:
getSecondaryId
in interfaceIViewReference
- Returns:
- the secondary ID, or
null
if there is no secondary id - See Also:
-
getView
Description copied from interface:IViewReference
Returns theIViewPart
referenced by this object. Returnsnull
if the view was not instantiated or it failed to be restored. Tries to restore the view ifrestore
is true.- Specified by:
getView
in interfaceIViewReference
- Parameters:
restore
- true to try to restore the view, false otherwise.- Returns:
- the
IViewPart
or null.
-
isFastView
public boolean isFastView()- Specified by:
isFastView
in interfaceIViewReference
- Returns:
- true if the view is a fast view otherwise returns false.
-
createPart
- Specified by:
createPart
in classWorkbenchPartReference
- Throws:
PartInitException
-
createErrorPart
- Specified by:
createErrorPart
in classWorkbenchPartReference
-
initialize
- Specified by:
initialize
in classWorkbenchPartReference
- Throws:
PartInitException
-
getSite
- Specified by:
getSite
in classWorkbenchPartReference
-
getDescriptor
public org.eclipse.ui.internal.registry.ViewDescriptor getDescriptor()
-