public class DefaultEditDomain extends EditDomain
EditDomain
. An IEditorPart
is
required in the constructor, but it can be null
.
A SelectionTool
will be the active Tool until:
PaletteRoot
is provided which contains
a default entry which is a ToolEntry
. In
which case that entry's tool is made the active Tool.
DefaultEditDomain can be configured with a
PaletteViewer
. When provided, the
DefaultEditDomain will listen for PaletteEvents, and will switch the active
Tool automatically in response.
Constructor and Description |
---|
DefaultEditDomain(IEditorPart editorPart)
Constructs a DefaultEditDomain with the specified IEditorPart
|
Modifier and Type | Method and Description |
---|---|
IEditorPart |
getEditorPart() |
protected void |
setEditorPart(IEditorPart editorPart)
Sets the IEditorPart for this EditDomain.
|
addViewer, focusGained, focusLost, getActiveTool, getCommandStack, getDefaultTool, getPaletteViewer, keyDown, keyTraversed, keyUp, loadDefaultTool, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, mouseWheelScrolled, nativeDragFinished, nativeDragStarted, removeViewer, setActiveTool, setCommandStack, setDefaultTool, setPaletteRoot, setPaletteViewer, viewerEntered, viewerExited
public DefaultEditDomain(IEditorPart editorPart)
editorPart
- null
or an IEditorPartpublic IEditorPart getEditorPart()
protected void setEditorPart(IEditorPart editorPart)
editorPart
- the editorCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.