Package org.eclipse.gef.editparts
Class SimpleRootEditPart
java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.SimpleRootEditPart
- All Implemented Interfaces:
- IAdaptable,- EditPart,- GraphicalEditPart,- RequestConstants,- RootEditPart
- Direct Known Subclasses:
- FreeformGraphicalRootEditPart,- ScalableRootEditPart
Default implementation of RootEditPart for GraphicalViewers.
- Since:
- 3.2
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartAbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProviderNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPartAbstractEditPart.EditPolicyIterator
- 
Field SummaryFields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartfigure, sourceConnections, targetConnectionsFields inherited from class org.eclipse.gef.editparts.AbstractEditPartchildren, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAGFields inherited from interface org.eclipse.gef.EditPartSELECTED, SELECTED_NONE, SELECTED_PRIMARYFields inherited from interface org.eclipse.gef.RequestConstantsREQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidNo editpolicies are installed on a RootEditPart by default.protected IFigureThe default root figure is a figure with a stack layout.getCommand(Request req) The RootEditPart should never be asked for a command.Returns the contents EditPart.getRoot()Returns theRootEditPart.Convenience method for returning theEditPartViewerfor this part.protected voidOverridden to do nothing, child is set using setContents(EditPart)voidsetContents(EditPart editpart) Sets the contents EditPart.voidsetViewer(EditPartViewer newViewer) Sets the root's EditPartViewer.Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartactivate, addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, deactivate, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, getChildren, getContentPane, getDragTracker, getFigure, getLayer, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, isSelectable, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisualsMethods inherited from class org.eclipse.gef.editparts.AbstractEditPartactivateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getEditPolicy, getEditPolicyIterable, getEditPolicyIterator, getEventListeners, getEventListenersIterable, getFlag, getModel, getModelChildren, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, performRequest, refreshVisuals, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregister, unregisterAccessibility, unregisterModelMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.gef.EditPartactivate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getDragTracker, getEditPolicy, getModel, getParent, 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
- 
Constructor Details- 
SimpleRootEditPartpublic SimpleRootEditPart()
 
- 
- 
Method Details- 
createEditPoliciesprotected void createEditPolicies()No editpolicies are installed on a RootEditPart by default.- Specified by:
- createEditPoliciesin class- AbstractEditPart
- See Also:
 
- 
createFigureThe default root figure is a figure with a stack layout.- Specified by:
- createFigurein class- AbstractGraphicalEditPart
- Returns:
- a Figure
- See Also:
 
- 
getCommandThe RootEditPart should never be asked for a command. This implementation returns an unexecutable command.- Specified by:
- getCommandin interface- EditPart
- Overrides:
- getCommandin class- AbstractEditPart
- Parameters:
- req- the Request
- Returns:
- a Command
- See Also:
 
- 
getContentsDescription copied from interface:RootEditPartReturns the contents EditPart. A RootEditPart only has a single child, called its contents.- Specified by:
- getContentsin interface- RootEditPart
- Returns:
- the contents.
- See Also:
 
- 
getRootDescription copied from interface:EditPartReturns theRootEditPart. This method should only be called internally or by helpers such as edit policies. The root can be used to get the viewer.- Specified by:
- getRootin interface- EditPart
- Overrides:
- getRootin class- AbstractEditPart
- Returns:
- nullor the- RootEditPart
- See Also:
 
- 
getViewerDescription copied from interface:EditPartConvenience method for returning theEditPartViewerfor this part.- Specified by:
- getViewerin interface- EditPart
- Specified by:
- getViewerin interface- RootEditPart
- Overrides:
- getViewerin class- AbstractEditPart
- Returns:
- the EditPartViewerornull
- See Also:
 
- 
refreshChildrenprotected void refreshChildren()Overridden to do nothing, child is set using setContents(EditPart)- Overrides:
- refreshChildrenin class- AbstractEditPart
- See Also:
 
- 
setContentsDescription copied from interface:RootEditPartSets the contents EditPart. A RootEditPart only has a single child, called its contents.- Specified by:
- setContentsin interface- RootEditPart
- Parameters:
- editpart- the contents
- See Also:
 
- 
setViewerDescription copied from interface:RootEditPartSets the root's EditPartViewer.- Specified by:
- setViewerin interface- RootEditPart
- Parameters:
- newViewer- the EditPartViewer
- See Also:
 
 
-