Package org.eclipse.gef.ui.views.palette
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 PaletteViewerProvider
The PaletteViewerProvider that is used to create the PaletteViewerprotected PaletteViewer
The PaletteViewer created for this page -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(Composite parent) Creates the palette viewer and its control.void
dispose()
Releases the palette viewer from the edit domain<T> T
getAdapter
(Class<T> adapter) void
setFocus()
Sets focus on the palette's controlMethods inherited from class org.eclipse.ui.part.Page
getSite, init, makeContributions, setActionBars
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.part.IPage
setActionBars
Methods inherited from interface org.eclipse.ui.part.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:
createControl
in interfaceIPage
- Specified by:
createControl
in classPage
- See Also:
-
dispose
public void dispose()Releases the palette viewer from the edit domain -
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- See Also:
-
getControl
- Specified by:
getControl
in interfaceIPage
- Specified by:
getControl
in classPage
- Returns:
- the palette viewer's control
- See Also:
-
setFocus
public void setFocus()Sets focus on the palette's control
-