Package org.eclipse.gef.ui.views.palette
Class PaletteView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.ui.part.PageBookView
org.eclipse.gef.ui.views.palette.PaletteView
- All Implemented Interfaces:
- IAdaptable,- IExecutableExtension,- IPartListener,- IPersistable,- IViewPart,- IWorkbenchPart,- IWorkbenchPart2,- IWorkbenchPart3,- IWorkbenchPartOrientation
The GEF palette view
- Since:
- 3.0
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.ui.part.PageBookViewPageBookView.PageRec, PageBookView.SelectionProvider
- 
Field SummaryFieldsFields inherited from interface org.eclipse.ui.IWorkbenchPartPROP_TITLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected IPagecreateDefaultPage(PageBook book) Creates a default page saying that a palette is not available.voidcreatePartControl(Composite parent) Add a perspective listener so the palette view can be updated when the perspective is switched.voiddispose()Remove the perspective listener.protected PageBookView.PageRecdoCreatePage(IWorkbenchPart part) protected voiddoDestroyPage(IWorkbenchPart part, PageBookView.PageRec rec) protected IWorkbenchPartThe view shows the palette associated with the active editor.protected booleanisImportant(IWorkbenchPart part) Only editors in the same perspective as the view are important.Methods inherited from class org.eclipse.ui.part.PageBookViewdoesPageExist, getAdapter, getCurrentContributingPart, getCurrentPage, getDefaultPage, getPageBook, getPageRec, getPageRec, getPageSite, getSelectionProvider, getViewAdapter, init, initPage, partActivated, partBroughtToTop, partClosed, partDeactivated, partHidden, partOpened, partVisible, setFocus, showPageRecMethods inherited from class org.eclipse.ui.part.ViewPartcheckSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPartaddPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPartaddPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
- 
Field Details- 
IDThe ID for this view. This is the same as the String used to register this view with the platform's extension point.- See Also:
 
 
- 
- 
Constructor Details- 
PaletteViewpublic PaletteView()
 
- 
- 
Method Details- 
createDefaultPageCreates a default page saying that a palette is not available.- Specified by:
- createDefaultPagein class- PageBookView
- See Also:
 
- 
createPartControlAdd a perspective listener so the palette view can be updated when the perspective is switched.- Specified by:
- createPartControlin interface- IWorkbenchPart
- Overrides:
- createPartControlin class- PageBookView
- See Also:
 
- 
disposepublic void dispose()Remove the perspective listener.- Specified by:
- disposein interface- IWorkbenchPart
- Overrides:
- disposein class- PageBookView
- See Also:
 
- 
doCreatePage- Specified by:
- doCreatePagein class- PageBookView
- See Also:
 
- 
doDestroyPage- Specified by:
- doDestroyPagein class- PageBookView
- See Also:
 
- 
getBootstrapPartThe view shows the palette associated with the active editor.- Specified by:
- getBootstrapPartin class- PageBookView
- See Also:
 
- 
isImportantOnly editors in the same perspective as the view are important.- Specified by:
- isImportantin class- PageBookView
- See Also:
 
 
-