public abstract class GraphicalEditorWithFlyoutPalette extends GraphicalEditor
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.
Modifier and Type | Class and Description |
---|---|
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).
|
PROP_DIRTY, PROP_INPUT
PROP_TITLE
Constructor and Description |
---|
GraphicalEditorWithFlyoutPalette() |
Modifier and Type | Method and Description |
---|---|
protected FlyoutPaletteComposite |
createPaletteComposite(Composite parent)
Creates a new
FlyoutPaletteComposite to be used by this
GraphicalEditorWithFlyoutPalette |
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.
|
java.lang.Object |
getAdapter(java.lang.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.
|
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
checkSite, doSave, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
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)
protected FlyoutPaletteComposite createPaletteComposite(Composite parent)
FlyoutPaletteComposite
to be used by this
GraphicalEditorWithFlyoutPalette
parent
- The Composite
, which should serve as the container for
the to be created FlyoutPaletteComposite
.FlyoutPaletteComposite
used by this
GraphicalEditorWithFlyoutPalette
.public java.lang.Object getAdapter(java.lang.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 FlyoutPaletteComposite.FlyoutPreferences getPalettePreferences()
protected abstract PaletteRoot getPaletteRoot()
protected final PaletteViewerProvider getPaletteViewerProvider()
createPaletteViewerProvider()
protected void setEditDomain(DefaultEditDomain ed)
setEditDomain
in class GraphicalEditor
ed
- The new EditDomainCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.