Package org.eclipse.gef
Interface RootEditPart
- All Superinterfaces:
- EditPart,- IAdaptable
- All Known Implementing Classes:
- FreeformGraphicalRootEditPart,- GraphicalRootEditPart,- RootTreeEditPart,- ScalableFreeformRootEditPart,- ScalableRootEditPart,- SimpleRootEditPart
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.- 
Field SummaryFields inherited from interface org.eclipse.gef.EditPartSELECTED, SELECTED_NONE, SELECTED_PRIMARY
- 
Method SummaryModifier and TypeMethodDescriptionReturns the contents EditPart.Returns the root's EditPartViewer.voidsetContents(EditPart editpart) Sets the contents EditPart.voidsetViewer(EditPartViewer viewer) Sets the root's EditPartViewer.Methods inherited from interface org.eclipse.gef.EditPartactivate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequestMethods inherited from interface org.eclipse.core.runtime.IAdaptablegetAdapter
- 
Method Details- 
getContentsEditPart getContents()Returns the contents EditPart. A RootEditPart only has a single child, called its contents.- Returns:
- the contents.
 
- 
getViewerEditPartViewer getViewer()Returns the root's EditPartViewer.
- 
setContentsSets the contents EditPart. A RootEditPart only has a single child, called its contents.- Parameters:
- editpart- the contents
 
- 
setViewerSets the root's EditPartViewer.- Parameters:
- viewer- the EditPartViewer
 
 
-