|
Eclipse GEF 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.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). |
Field Summary |
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
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 abstract FlyoutPaletteComposite.FlyoutPreferences |
getPalettePreferences()
|
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, firePropertyChange, getActionRegistry, getCommandStack, getEditDomain, getGraphicalViewer, getPropertyActions, getSelectionActions, getSelectionSynchronizer, getStackActions, hookGraphicalViewer, init, initializeActionRegistry, isDirty, selectionChanged, setActionRegistry, setFocus, setGraphicalViewer, updateActions |
Methods inherited from class org.eclipse.ui.part.EditorPart |
checkSite, doSave, doSaveAs, getEditorInput, getEditorSite, getTitleToolTip, isSaveAsAllowed, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
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.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
Constructor Detail |
public GraphicalEditorWithFlyoutPalette()
Method Detail |
protected void initializeGraphicalViewer()
GraphicalEditor
initializeGraphicalViewer
in class GraphicalEditor
GraphicalEditor.initializeGraphicalViewer()
protected PaletteViewerProvider createPaletteViewerProvider()
protected GraphicalEditorWithFlyoutPalette.CustomPalettePage createPalettePage()
GraphicalEditorWithFlyoutPalette.CustomPalettePage
public void createPartControl(Composite parent)
GraphicalEditor
WARNING: This method may or may not be called by the workbench prior to GraphicalEditor.dispose()
.
createPartControl
in interface IWorkbenchPart
createPartControl
in class GraphicalEditor
parent
- the parent compositeGraphicalEditor.createPartControl(Composite)
public Object getAdapter(Class type)
GraphicalEditor
IMPORTANT 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 interface IAdaptable
getAdapter
in class GraphicalEditor
IAdaptable.getAdapter(java.lang.Class)
protected Control getGraphicalControl()
protected abstract FlyoutPaletteComposite.FlyoutPreferences getPalettePreferences()
protected abstract PaletteRoot getPaletteRoot()
protected final PaletteViewerProvider getPaletteViewerProvider()
createPaletteViewerProvider()
protected void setEditDomain(DefaultEditDomain ed)
setEditDomain
in class GraphicalEditor
ed
- The new EditDomain
|
Eclipse GEF 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |