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 Summary
Nested classes/interfaces inherited from class org.eclipse.ui.part.PageBookView
PageBookView.PageRec, PageBookView.SelectionProvider -
Field Summary
FieldsFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier 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.PageBookView
doesPageExist, 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.ViewPart
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, 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.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
ID
The 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
-
PaletteView
public PaletteView()
-
-
Method Details
-
createDefaultPage
Creates a default page saying that a palette is not available.- Specified by:
createDefaultPagein classPageBookView- See Also:
-
createPartControl
Add a perspective listener so the palette view can be updated when the perspective is switched.- Specified by:
createPartControlin interfaceIWorkbenchPart- Overrides:
createPartControlin classPageBookView- See Also:
-
dispose
public void dispose()Remove the perspective listener.- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classPageBookView- See Also:
-
doCreatePage
- Specified by:
doCreatePagein classPageBookView- See Also:
-
doDestroyPage
- Specified by:
doDestroyPagein classPageBookView- See Also:
-
getBootstrapPart
The view shows the palette associated with the active editor.- Specified by:
getBootstrapPartin classPageBookView- See Also:
-
isImportant
Only editors in the same perspective as the view are important.- Specified by:
isImportantin classPageBookView- See Also:
-