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 SummaryFields inherited from class org.eclipse.ui.internal.WorkbenchPartReferenceINTERNAL_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.ISizeProviderINFINITE
- 
Constructor SummaryConstructorsConstructorDescriptionViewReference(IEclipseContext windowContext, IWorkbenchPage page, MPart part, org.eclipse.ui.internal.registry.ViewDescriptor descriptor) 
- 
Method SummaryModifier 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.WorkbenchPartReferenceaddPartPropertyListener, 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPartReferenceaddPartPropertyListener, addPropertyListener, getContentDescription, getId, getPage, getPart, getPartProperty, getTitle, getTitleImage, getTitleToolTip, isDirty, removePartPropertyListener, removePropertyListener
- 
Constructor Details- 
ViewReferencepublic ViewReference(IEclipseContext windowContext, IWorkbenchPage page, MPart part, org.eclipse.ui.internal.registry.ViewDescriptor descriptor) 
 
- 
- 
Method Details- 
persistpublic void persist()
- 
getPartNameDescription copied from interface:IWorkbenchPartReferenceReturns the name of the part, as it should be shown in tabs.- Specified by:
- getPartNamein interface- IWorkbenchPartReference
- Overrides:
- getPartNamein class- WorkbenchPartReference
- Returns:
- the part name
 
- 
getSecondaryIdDescription copied from interface:IViewReferenceReturns the secondary ID for the view.- Specified by:
- getSecondaryIdin interface- IViewReference
- Returns:
- the secondary ID, or nullif there is no secondary id
- See Also:
 
- 
getViewDescription 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 interface- IViewReference
- Parameters:
- restore- true to try to restore the view, false otherwise.
- Returns:
- the IViewPartor null.
 
- 
isFastViewpublic boolean isFastView()- Specified by:
- isFastViewin interface- IViewReference
- Returns:
- true if the view is a fast view otherwise returns false.
 
- 
createPart- Specified by:
- createPartin class- WorkbenchPartReference
- Throws:
- PartInitException
 
- 
createErrorPart- Specified by:
- createErrorPartin class- WorkbenchPartReference
 
- 
initialize- Specified by:
- initializein class- WorkbenchPartReference
- Throws:
- PartInitException
 
- 
getSite- Specified by:
- getSitein class- WorkbenchPartReference
 
- 
getDescriptorpublic org.eclipse.ui.internal.registry.ViewDescriptor getDescriptor()
 
-