Package org.eclipse.gef
Class DefaultEditDomain
- java.lang.Object
-
- org.eclipse.gef.EditDomain
-
- org.eclipse.gef.DefaultEditDomain
-
public class DefaultEditDomain extends EditDomain
A default implementation ofEditDomain. AnIEditorPartis required in the constructor, but it can benull.A
SelectionToolwill be the active Tool until:- A
PaletteRootis provided which contains a default entry which is aToolEntry. 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. - A
-
-
Constructor Summary
Constructors Constructor Description DefaultEditDomain(IEditorPart editorPart)Constructs a DefaultEditDomain with the specified IEditorPart
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IEditorPartgetEditorPart()protected voidsetEditorPart(IEditorPart editorPart)Sets the IEditorPart for this EditDomain.-
Methods inherited from class org.eclipse.gef.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
-
-
-
-
Constructor Detail
-
DefaultEditDomain
public DefaultEditDomain(IEditorPart editorPart)
Constructs a DefaultEditDomain with the specified IEditorPart- Parameters:
editorPart-nullor an IEditorPart
-
-
Method Detail
-
getEditorPart
public IEditorPart getEditorPart()
- Returns:
- the IEditorPart for this EditDomain
-
setEditorPart
protected void setEditorPart(IEditorPart editorPart)
Sets the IEditorPart for this EditDomain.- Parameters:
editorPart- the editor
-
-