Class PaletteViewerPage
java.lang.Object
org.eclipse.ui.part.Page
org.eclipse.gef.ui.views.palette.PaletteViewerPage
- All Implemented Interfaces:
IAdaptable, PalettePage, IPage, IPageBookViewPage
- Direct Known Subclasses:
GraphicalEditorWithFlyoutPalette.CustomPalettePage
The default page for the PaletteView that works in conjunction with a
PaletteViewerProvider.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PaletteViewerProviderThe PaletteViewerProvider that is used to create the PaletteViewerprotected PaletteViewerThe PaletteViewer created for this page -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(Composite parent) Creates the palette viewer and its control.voiddispose()Releases the palette viewer from the edit domain<T> TgetAdapter(Class<T> adapter) voidsetFocus()Sets focus on the palette's controlMethods inherited from class Page
getSite, init, makeContributions, setActionBarsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPage
setActionBarsMethods inherited from interface IPageBookViewPage
getSite, init
-
Field Details
-
provider
The PaletteViewerProvider that is used to create the PaletteViewer -
viewer
The PaletteViewer created for this page
-
-
Constructor Details
-
PaletteViewerPage
Constructor- Parameters:
pvProvider- the provider used to create the palette viewer
-
-
Method Details
-
createControl
Creates the palette viewer and its control.- Specified by:
createControlin interfaceIPage- Specified by:
createControlin classPage- See Also:
-
dispose
-
getAdapter
- Specified by:
getAdapterin interfaceIAdaptable- See Also:
-
getControl
- Specified by:
getControlin interfaceIPage- Specified by:
getControlin classPage- Returns:
- the palette viewer's control
- See Also:
-
setFocus
-