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_LAZYFields inherited from interface org.eclipse.ui.ISizeProvider
INFINITE -
Constructor Summary
ConstructorsConstructorDescriptionViewReference(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.ViewDescriptorReturns the name of the part, as it should be shown in tabs.Returns the secondary ID for the view.getSite()getView(boolean restore) Returns theIViewPartreferenced by this object.voidinitialize(IWorkbenchPart part) booleanvoidpersist()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, unsubscribeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:IWorkbenchPartReferenceReturns the name of the part, as it should be shown in tabs.- Specified by:
getPartNamein interfaceIWorkbenchPartReference- Overrides:
getPartNamein classWorkbenchPartReference- Returns:
- the part name
-
getSecondaryId
Description copied from interface:IViewReferenceReturns the secondary ID for the view.- Specified by:
getSecondaryIdin interfaceIViewReference- Returns:
- the secondary ID, or
nullif there is no secondary id - See Also:
-
getView
Description copied from interface:IViewReferenceReturns theIViewPartreferenced by this object. Returnsnullif the view was not instantiated or it failed to be restored. Tries to restore the view ifrestoreis true.- Specified by:
getViewin interfaceIViewReference- Parameters:
restore- true to try to restore the view, false otherwise.- Returns:
- the
IViewPartor null.
-
isFastView
public boolean isFastView()- Specified by:
isFastViewin interfaceIViewReference- Returns:
- true if the view is a fast view otherwise returns false.
-
createPart
- Specified by:
createPartin classWorkbenchPartReference- Throws:
PartInitException
-
createErrorPart
- Specified by:
createErrorPartin classWorkbenchPartReference
-
initialize
- Specified by:
initializein classWorkbenchPartReference- Throws:
PartInitException
-
getSite
- Specified by:
getSitein classWorkbenchPartReference
-
getDescriptor
public org.eclipse.ui.internal.registry.ViewDescriptor getDescriptor()
-