Interface RootEditPart

All Superinterfaces:
EditPart, IAdaptable
All Known Implementing Classes:
FreeformGraphicalRootEditPart, GraphicalRootEditPart, RootTreeEditPart, ScalableFreeformRootEditPart, ScalableRootEditPart, SimpleRootEditPart

public interface RootEditPart extends EditPart
A RootEditPart is the root of an EditPartViewer. It bridges the gap between the EditPartViewer and its contents. It does not correspond to anything in the model, and typically can not be interacted with by the User. The Root provides a homogeneous context for the applications "real" EditParts.
  • Method Details

    • getContents

      EditPart getContents()
      Returns the contents EditPart. A RootEditPart only has a single child, called its contents.
      Returns:
      the contents.
    • getViewer

      EditPartViewer getViewer()
      Returns the root's EditPartViewer.
      Specified by:
      getViewer in interface EditPart
      Returns:
      The EditPartViewer
    • setContents

      void setContents(EditPart editpart)
      Sets the contents EditPart. A RootEditPart only has a single child, called its contents.
      Parameters:
      editpart - the contents
    • setViewer

      void setViewer(EditPartViewer viewer)
      Sets the root's EditPartViewer.
      Parameters:
      viewer - the EditPartViewer