Class DefaultEditDomain

java.lang.Object
org.eclipse.gef.EditDomain
org.eclipse.gef.DefaultEditDomain

public class DefaultEditDomain extends EditDomain
A default implementation of EditDomain. An IEditorPart is required in the constructor, but it can be null.

A SelectionTool will be the active Tool until:

  • A 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 Details

    • DefaultEditDomain

      public DefaultEditDomain(IEditorPart editorPart)
      Constructs a DefaultEditDomain with the specified IEditorPart
      Parameters:
      editorPart - null or an IEditorPart
  • Method Details

    • 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