|
Eclipse GEF 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.ui.parts.GraphicalEditor
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
This class serves as a quick starting point for clients who are new to GEF. It will create an Editor with a flyout palette. The flyout palette will only be visible when the palette view is not open.
IMPORTANTThis class should only be used as a reference for creating your own EditorPart implementation. This class will not suit everyone's needs, and may change in the future. Clients may copy the implementation.
| Nested Class Summary | |
protected class |
GraphicalEditorWithFlyoutPalette.CustomPalettePage
A custom PalettePage that helps GraphicalEditorWithFlyoutPalette keep the two PaletteViewers (one displayed in the editor and the other displayed in the PaletteView) in sync when switching from one to the other (i.e., it helps maintain state across the two viewers). |
| Constructor Summary | |
GraphicalEditorWithFlyoutPalette()
|
|
| Method Summary | |
protected GraphicalEditorWithFlyoutPalette.CustomPalettePage |
createPalettePage()
|
protected PaletteViewerProvider |
createPaletteViewerProvider()
Creates a PaletteViewerProvider that will be used to create palettes for the view and the flyout. |
void |
createPartControl(Composite parent)
Realizes the Editor by creating it's Control. |
Object |
getAdapter(Class type)
Returns the adapter for the specified key. |
protected Control |
getGraphicalControl()
|
protected FlyoutPaletteComposite.FlyoutPreferences |
getPalettePreferences()
By default, this method returns a FlyoutPreferences object that stores the flyout settings in the GEF plugin. |
protected abstract PaletteRoot |
getPaletteRoot()
Returns the PaletteRoot for the palette viewer. |
protected PaletteViewerProvider |
getPaletteViewerProvider()
Returns the palette viewer provider that is used to create palettes for the view and the flyout. |
protected void |
initializeGraphicalViewer()
Override to set the contents of the GraphicalViewer after it has been created. |
protected void |
setEditDomain(DefaultEditDomain ed)
Sets the edit domain for this editor. |
| Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditor |
commandStackChanged, configureGraphicalViewer, createActions, createGraphicalViewer, dispose, doSaveAs, firePropertyChange, getActionRegistry, getCommandStack, getEditDomain, getGraphicalViewer, getPropertyActions, getSelectionActions, getSelectionSynchronizer, getStackActions, hookGraphicalViewer, init, initializeActionRegistry, isDirty, isSaveAsAllowed, selectionChanged, setActionRegistry, setFocus, setGraphicalViewer, updateActions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphicalEditorWithFlyoutPalette()
| Method Detail |
protected void initializeGraphicalViewer()
GraphicalEditor
initializeGraphicalViewer in class GraphicalEditorGraphicalEditor.initializeGraphicalViewer()protected PaletteViewerProvider createPaletteViewerProvider()
protected GraphicalEditorWithFlyoutPalette.CustomPalettePage createPalettePage()
GraphicalEditorWithFlyoutPalette.CustomPalettePagepublic void createPartControl(Composite parent)
GraphicalEditorWARNING: This method may or may not be called by the workbench prior to GraphicalEditor.dispose().
createPartControl in class GraphicalEditorparent - the parent compositeGraphicalEditor.createPartControl(Composite)public Object getAdapter(Class type)
GraphicalEditorIMPORTANT certain requests, such as the property sheet, may be made before
or after GraphicalEditor.createPartControl(Composite) is called. The order is unspecified by
the Workbench.
getAdapter in class GraphicalEditororg.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)protected Control getGraphicalControl()
protected FlyoutPaletteComposite.FlyoutPreferences getPalettePreferences()
protected abstract PaletteRoot getPaletteRoot()
protected final PaletteViewerProvider getPaletteViewerProvider()
createPaletteViewerProvider()protected void setEditDomain(DefaultEditDomain ed)
setEditDomain in class GraphicalEditored - The new EditDomain
|
Eclipse GEF 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||