Uses of Interface
org.eclipse.gef.EditPart
Packages that use EditPart
Package
Description
All interfaces, base types, and the plugin class are here.
This package contains abstract implementation of the EditPart interface.
This package contains EditPolicy implementations for many common editing 
Roles.
This package contains the common Request types used by the provided tools and edit policies.
This package provides several tool implementations.
This package support for using JFace Actions in your EditorPart.
- 
Uses of EditPart in org.eclipse.gefSubinterfaces of EditPart in org.eclipse.gefModifier and TypeInterfaceDescriptioninterfaceA specialization ofGraphicalEditPartfor representing connections.interfaceA Specialization ofEditPartfor use withGraphicalViewers.interfaceA specializedGraphicalEditPartthat supports both target and sourceConnectionEditParts.interfaceA RootEditPart is the root of an EditPartViewer.interfaceA Specialization ofEditPartfor use withTreeViewer.Methods in org.eclipse.gef that return EditPartModifier and TypeMethodDescriptionEditPartFactory.createEditPart(EditPart context, Object model) Creates a new EditPart given the specified context and model.EditPartViewer.findObjectAt(Point location) Returnsnullor theEditPartassociated with the specified location.EditPartViewer.findObjectAtExcluding(Point location, Collection<IFigure> exclusionSet) Returnsnullor theEditPartat the specified location, excluding the specified set.EditPartViewer.findObjectAtExcluding(Point location, Collection<IFigure> exclusionSet, EditPartViewer.Conditional conditional) Returnsnullor theEditPartat the specified location, using the given exclusion set and conditional.EditPartViewer.getContents()Returns the contents of this Viewer.RootEditPart.getContents()Returns the contents EditPart.EditPartViewer.getEditPartForModel(Object model) Convenience method to look up an edit part for a given model element in the EditPart registry.protected EditPartSelectionManager.getFocus()Returns the focus editpart.EditPartViewer.getFocusEditPart()Returns the focusEditPart.EditPolicy.getHost()EditPart.getParent()Returns the parentEditPart.ConnectionEditPart.getSource()ConnectionEditPart.getTarget()EditPart.getTargetEditPart(Request request) Return theEditPartthat should be used as the target for the specifiedRequest.EditPolicy.getTargetEditPart(Request request) Returnsnullor the appropriateEditPartfor the specifiedRequest.Methods in org.eclipse.gef that return types with arguments of type EditPartModifier and TypeMethodDescriptionEditPart.getChildren()Returns the List of childrenEditParts.EditPartViewer.getEditPartRegistry()Returns theMapfor registeringEditPartsby Keys.EditPartViewer.getSelectedEditParts()Returns an unmodifiableListcontaining zero or more selected editparts.EditPartViewer.getVisualPartMap()Returns theMapfor associating visual parts with theirEditParts.Methods in org.eclipse.gef with parameters of type EditPartModifier and TypeMethodDescriptionvoidEditPartViewer.appendSelection(EditPart editpart) Appends the specifiedEditPartto the viewer's selection.voidSelectionManager.appendSelection(EditPart editpart) Appends theEditPartto the current selection.voidEditPartListener.childAdded(EditPart child, int index) Called after a child EditPart has been added to its parent.voidEditPartListener.Stub.childAdded(EditPart child, int index) EditPartFactory.createEditPart(EditPart context, Object model) Creates a new EditPart given the specified context and model.voidRemoves the specifiedEditPartfrom the current selection.voidRemoves theEditPartfrom the current selection.booleanbooleanReturnstrueif the editpart meets this condition.voidExposeHelper.exposeDescendant(EditPart editpart) Exposes the specified descendant on the EditPart which returned this helper.voidEditPartListener.partActivated(EditPart editpart) Called when the editpart has been activated.voidEditPartListener.Stub.partActivated(EditPart editpart) voidEditPartListener.partDeactivated(EditPart editpart) Called when the editpart has been deactivated.voidEditPartListener.Stub.partDeactivated(EditPart editpart) voidEditPartListener.removingChild(EditPart child, int index) Called before a child EditPart is removed from its parent.voidEditPartListener.Stub.removingChild(EditPart child, int index) voidReveals the given EditPart if it is not visible.voidReplaces the current selection with the specifiedEditPart.voidEditPartListener.selectedStateChanged(EditPart editpart) Called when the selected state of an EditPart has changed.voidEditPartListener.Stub.selectedStateChanged(EditPart part) voidEditPartViewer.setContents(EditPart editpart) Sets the contents for this Viewer.voidRootEditPart.setContents(EditPart editpart) Sets the contents EditPart.voidSets the focus EditPart.voidSets the focus part.voidSets the host in which this EditPolicy is installed.voidGraphicalEditPart.setLayoutConstraint(EditPart child, IFigure figure, Object constraint) Sets the specified constraint for a child's Figure on thecontent panefigure for this GraphicalEditPart.void Sets the parent. Sets the parent.voidSets the source of this connection.voidSets thetarget of this connection.Method parameters in org.eclipse.gef with type arguments of type EditPartModifier and TypeMethodDescriptionprotected List<? extends GraphicalEditPart> SnapToGeometry.generateSnapPartsList(List<? extends EditPart> exclusions) Generates a list of parts which should be snapped to.voidSelectionManager.internalInitialize(EditPartViewer viewer, List<EditPart> selection, Runnable notifier) For internal use only.
- 
Uses of EditPart in org.eclipse.gef.dndMethods in org.eclipse.gef.dnd that return EditPartModifier and TypeMethodDescriptionprotected EditPartAbstractTransferDropTargetListener.getTargetEditPart()Returns the current targetEditPart.Methods in org.eclipse.gef.dnd that return types with arguments of type EditPartModifier and TypeMethodDescriptionprotected Collection<EditPart> AbstractTransferDropTargetListener.getExclusionSet()Returns a Collection ofEditPartsthat are to be excluded when searching for the target EditPart.Methods in org.eclipse.gef.dnd with parameters of type EditPartModifier and TypeMethodDescriptionprotected voidAbstractTransferDropTargetListener.setTargetEditPart(EditPart ep) Sets the targetEditPart.
- 
Uses of EditPart in org.eclipse.gef.editpartsSubinterfaces of EditPart in org.eclipse.gef.editpartsModifier and TypeInterfaceDescriptioninterfaceShould be implemented by EditParts, to which anScrollableSelectionFeedbackEditPolicyis to be registered, as it grants the edit policy type-safe access to the edit part'sIScrollableFigure.Classes in org.eclipse.gef.editparts that implement EditPartModifier and TypeClassDescriptionclassThe base implementation forConnectionEditPart.classThe baseline implementation for theEditPartinterface.classDefault implementation forGraphicalEditPart.classDefault implementation forTreeEditParts used in GEFTreeViewers.classA graphical root that usesFreeformFiguresas the layers in the diagram.classDeprecated.this class will be deleted, use ScrollingGraphicalViewer with ScalableRootEditPart insteadclassThe root editpart for aTreeViewer.classAdds Zoom support to the standard FreeformGraphicalRootEditPart.classA graphical root composed of regularLayers.classDefault implementation of RootEditPart for GraphicalViewers.Fields in org.eclipse.gef.editparts declared as EditPartModifier and TypeFieldDescriptionprotected EditPartGraphicalRootEditPart.contentsDeprecated.The contentsFields in org.eclipse.gef.editparts with type parameters of type EditPartMethods in org.eclipse.gef.editparts that return EditPartModifier and TypeMethodDescriptionprotected EditPartAbstractEditPart.createChild(Object model) Create the childEditPartfor the given model object.GraphicalRootEditPart.getContents()Deprecated.RootTreeEditPart.getContents()SimpleRootEditPart.getContents()AbstractEditPart.getParent()AbstractConnectionEditPart.getSource()AbstractConnectionEditPart.getTarget()AbstractEditPart.getTargetEditPart(Request request) Returns theEditPartwhich is the target of theRequest.Methods in org.eclipse.gef.editparts that return types with arguments of type EditPartMethods in org.eclipse.gef.editparts with parameters of type EditPartModifier and TypeMethodDescriptionprotected voidAdds a childEditPartto this EditPart.protected abstract voidAbstractEditPart.addChildVisual(EditPart child, int index) Performs the addition of the child's visual to this EditPart's Visual.protected voidAbstractGraphicalEditPart.addChildVisual(EditPart childEditPart, int index) Adds the child's Figure to thecontentPane.protected voidAbstractTreeEditPart.addChildVisual(EditPart childEditPart, int index) Implemented to assign the child itswidget.protected voidRootTreeEditPart.addChildVisual(EditPart childEditPart, int index) This is where the child gets added.voidViewportExposeHelper.exposeDescendant(EditPart part) Exposes the descendant EditPart by smoothly scrolling theViewport.static LayerManagerFinds the LayerManager given any EditPart in the Viewer.protected voidAbstractEditPart.fireChildAdded(EditPart child, int index) NotifiesEditPartListenersthat a child has been added.protected voidAbstractEditPart.fireRemovingChild(EditPart child, int index) NotifiesEditPartListenersthat a child is being removed.protected voidAbstractEditPart.removeChild(EditPart child) Removes a childEditPart.protected abstract voidAbstractEditPart.removeChildVisual(EditPart child) Removes the child's visual from this EditPart's visual.protected voidAbstractGraphicalEditPart.removeChildVisual(EditPart childEditPart) Remove the child's Figure from thecontentPane.protected voidAbstractTreeEditPart.removeChildVisual(EditPart childEditPart) Disposes the child'swidgetand sets it tonull.protected voidRootTreeEditPart.removeChildVisual(EditPart childEditPart) This is where the child gets removed.protected voidAbstractEditPart.reorderChild(EditPart editpart, int index) Moves a childEditPartinto a lower index than it currently occupies.protected voidAbstractGraphicalEditPart.reorderChild(EditPart child, int index) This method is extended to preserve a LayoutManager constraint if one exists.protected voidAbstractTreeEditPart.reorderChild(EditPart editpart, int index) voidGraphicalRootEditPart.setContents(EditPart editpart) Deprecated.voidRootTreeEditPart.setContents(EditPart editpart) voidSimpleRootEditPart.setContents(EditPart editpart) voidAbstractGraphicalEditPart.setLayoutConstraint(EditPart child, IFigure childFigure, Object constraint) voidExtended to implement automatic addNotify and removeNotify handling.voidSets the parent EditPart.voidSets the source EditPart of this connection.voidSets the target EditPart of this connection.
- 
Uses of EditPart in org.eclipse.gef.editpoliciesMethods in org.eclipse.gef.editpolicies that return EditPartModifier and TypeMethodDescriptionAbstractEditPolicy.getHost()protected EditPartFlowLayoutEditPolicy.getInsertionReference(Request request) protected abstract EditPartOrderedLayoutEditPolicy.getInsertionReference(Request request) Calculates a referenceEditPartusing the specifiedRequest.AbstractEditPolicy.getTargetEditPart(Request request) Returnsnullby default.GraphicalNodeEditPolicy.getTargetEditPart(Request request) Returns the host for the appropriateRequests.LayoutEditPolicy.getTargetEditPart(Request request) Returns the host if the Request is an ADD, MOVE, or CREATE.SelectionEditPolicy.getTargetEditPart(Request request) TreeContainerEditPolicy.getTargetEditPart(Request req) Returns the host EditPart when appropriate.Methods in org.eclipse.gef.editpolicies with parameters of type EditPartModifier and TypeMethodDescriptionprotected CommandConstrainedLayoutEditPolicy.createAddCommand(EditPart child, Object constraint) Deprecated.protected CommandConstrainedLayoutEditPolicy.createAddCommand(ChangeBoundsRequest request, EditPart child, Object constraint) Returns theCommandto perform an Add with the specified child and constraint.protected abstract CommandOrderedLayoutEditPolicy.createAddCommand(EditPart child, EditPart after) Returns theCommandto add the specified child after a referenceEditPart.protected CommandConstrainedLayoutEditPolicy.createChangeConstraintCommand(EditPart child, Object constraint) Deprecated.protected CommandConstrainedLayoutEditPolicy.createChangeConstraintCommand(ChangeBoundsRequest request, EditPart child, Object constraint) The request is now made available when creating the change constraint command.protected EditPolicyConstrainedLayoutEditPolicy.createChildEditPolicy(EditPart child) AResizableEditPolicyis used by default for children.protected abstract EditPolicyLayoutEditPolicy.createChildEditPolicy(EditPart child) Returns the "satellite" EditPolicy used to decorate the child.protected EditPolicyOrderedLayoutEditPolicy.createChildEditPolicy(EditPart child) Since Ordered layouts generally don't use constraints, aNonResizableEditPolicyis used by default for children.protected abstract CommandOrderedLayoutEditPolicy.createMoveChildCommand(EditPart child, EditPart after) Returns theCommandto move the specified child before the given referenceEditPart.protected voidLayoutEditPolicy.decorateChild(EditPart child) Decorates the child with aEditPolicy.PRIMARY_DRAG_ROLEsuch asResizableEditPolicy.voidvoidprotected voidLayoutEditPolicy.undecorateChild(EditPart child) Removes the decoration added inLayoutEditPolicy.decorateChild(EditPart).
- 
Uses of EditPart in org.eclipse.gef.requestsMethods in org.eclipse.gef.requests that return EditPartModifier and TypeMethodDescriptionForwardedRequest.getSender()Returns the EditPart that forwarded this Request.CreateConnectionRequest.getSourceEditPart()Returns the EditPart that the source end of the connection should be connected to.ReconnectRequest.getTarget()Returns the target edit part that the connection should be connected to.CreateConnectionRequest.getTargetEditPart()Returns the EditPart that the target end of the connection should be connected to.Methods in org.eclipse.gef.requests that return types with arguments of type EditPartModifier and TypeMethodDescriptionGroupRequest.getEditParts()Returns a List containing the EditParts making this Request.Methods in org.eclipse.gef.requests with parameters of type EditPartModifier and TypeMethodDescriptionvoidGroupRequest.setEditParts(EditPart part) A helper method to set the given EditPart as the requester.voidCreateConnectionRequest.setSourceEditPart(EditPart part) Sets the source of the Connection to the given EditPart.voidCreateConnectionRequest.setTargetEditPart(EditPart part) Sets the target of the Connection to the given EditPart.voidReconnectRequest.setTargetEditPart(EditPart ep) Sets the target edit part that the connection should be connected to.voidTargetRequest.setTargetEditPart(EditPart part) Sets the target EditPart.Method parameters in org.eclipse.gef.requests with type arguments of type EditPartModifier and TypeMethodDescriptionvoidGroupRequest.setEditParts(List<? extends EditPart> list) Sets the EditParts making this Request to the given List.Constructors in org.eclipse.gef.requests with parameters of type EditPartModifierConstructorDescriptionForwardedRequest(Object type, EditPart sender) Creates a ForwardRequest with the given type and sets the sender.
- 
Uses of EditPart in org.eclipse.gef.rulersMethods in org.eclipse.gef.rulers that return types with arguments of type EditPartModifier and TypeMethodDescriptionRulerProvider.getAttachedEditParts(Object guide, GraphicalViewer viewer) Returns a List of EditParts that are attached to the given guide.
- 
Uses of EditPart in org.eclipse.gef.toolsMethods in org.eclipse.gef.tools that return EditPartModifier and TypeMethodDescriptionstatic EditPartToolUtilities.findCommonAncestor(EditPart ll, EditPart rr) Returns the common parent editpart for given pair of EditParts.protected EditPartSelectEditPartTracker.getSourceEditPart()Returns the source edit part.protected EditPartTargetingTool.getTargetEditPart()Returnsnullor the current target editpart.Methods in org.eclipse.gef.tools that return types with arguments of type EditPartModifier and TypeMethodDescriptionAbstractTool.createOperationSet()Returns a new List of editparts that this tool is operating on.DragEditPartsTracker.createOperationSet()Returns a List of top-level edit parts excluding dependants (by callingToolUtilities.getSelectionWithoutDependants(EditPartViewer)that understand the current target request (by callingToolUtilities.filterEditPartsUnderstanding(List, Request).ResizeTracker.createOperationSet()Returns all selected parts which understand resizing.AbstractTool.getOperationSet()Lazily creates and returns the list of editparts on which the tool operates.ToolUtilities.getSelectionWithoutDependants(List<? extends EditPart> selectedParts) Returns a list containing the top level selected edit parts based on the passed in list of selection.ToolUtilities.getSelectionWithoutDependants(EditPartViewer viewer) Returns a list containing the top level selected edit parts based on the viewer's selection.Methods in org.eclipse.gef.tools with parameters of type EditPartModifier and TypeMethodDescriptionstatic EditPartToolUtilities.findCommonAncestor(EditPart ll, EditPart rr) Returns the common parent editpart for given pair of EditParts.static booleanToolUtilities.isAncestorContainedIn(Collection<? extends EditPart> c, EditPart ep) Checks if collection contains any ancestor of editpartepprotected voidTargetingTool.lockTargetEditPart(EditPart editpart) Locks-in the given editpart as the target.protected voidAbstractConnectionCreationTool.setConnectionSource(EditPart source) Sets the source editpart for the creationprotected voidSelectEditPartTracker.setSourceEditPart(EditPart part) Sets the source edit part.protected voidDragEditPartsTracker.setTargetEditPart(EditPart editpart) Extended to update the current snap-to strategy.protected voidTargetingTool.setTargetEditPart(EditPart editpart) Sets the target editpart.Method parameters in org.eclipse.gef.tools with type arguments of type EditPartModifier and TypeMethodDescriptionstatic voidToolUtilities.filterEditPartsUnderstanding(List<? extends EditPart> list, Request request) Filters the given list of EditParts so that the list only contains the EditParts that understand the given request (i.e. returntruefromunderstandsRequest(Request)when passed the given request).ToolUtilities.getSelectionWithoutDependants(List<? extends EditPart> selectedParts) Returns a list containing the top level selected edit parts based on the passed in list of selection.static booleanToolUtilities.isAncestorContainedIn(Collection<? extends EditPart> c, EditPart ep) Checks if collection contains any ancestor of editpartepConstructors in org.eclipse.gef.tools with parameters of type EditPartModifierConstructorDescriptionConstructs a new DeselectAllTracker.DragEditPartsTracker(EditPart sourceEditPart) Constructs a new DragEditPartsTracker with the given source edit part.DragTreeItemsTracker(EditPart sourceEditPart) Constructs a new DragTreeItemsTracker.SelectEditPartTracker(EditPart owner) Constructs a new SelectEditPartTracker with the given edit part as the source.
- 
Uses of EditPart in org.eclipse.gef.ui.actionsMethods in org.eclipse.gef.ui.actions that return types with arguments of type EditPartModifier and TypeMethodDescriptionAlignmentAction.getOperationSet(Request request) Returns the list of editparts which will participate in alignment.SelectionAction.getSelectedEditParts()Returns aList<EditPartcontaining the currently selected EditParts.Method parameters in org.eclipse.gef.ui.actions with type arguments of type EditPartModifier and TypeMethodDescriptionDeleteAction.createDeleteCommand(List<EditPart> objects) Create a command to remove the selected EditParts.
- 
Uses of EditPart in org.eclipse.gef.ui.paletteMethods in org.eclipse.gef.ui.palette that return EditPartModifier and TypeMethodDescriptionprotected EditPartPaletteEditPartFactory.createDrawerEditPart(EditPart parentEditPart, Object model) Create DrawerEditPart - edit part for PaletteDrawerPaletteEditPartFactory.createEditPart(EditPart parentEditPart, Object model) protected EditPartPaletteEditPartFactory.createEntryEditPart(EditPart parentEditPart, Object model) Create ToolEntryEditPart - edit part for ToolEntryprotected EditPartPaletteEditPartFactory.createGroupEditPart(EditPart parentEditPart, Object model) Create GroupEditPart - edit part for PaletteGroupprotected EditPartPaletteEditPartFactory.createMainPaletteEditPart(EditPart parentEditPart, Object model) Create SliderPaletteEditPart - edit part for PaletteRootprotected EditPartPaletteEditPartFactory.createSeparatorEditPart(EditPart parentEditPart, Object model) Create SeparatorEditPart - edit part for PaletteSeparatorprotected EditPartPaletteEditPartFactory.createStackEditPart(EditPart parentEditPart, Object model) Create PaletteStackEditPart - edit part for PaletteStackprotected EditPartPaletteEditPartFactory.createTemplateEditPart(EditPart parentEditPart, Object model) Create TemplateEditPart - edit part for PaletteTemplateEntryprotected EditPartPaletteEditPartFactory.createToolbarEditPart(EditPart parentEditPart, Object model) Create ToolbarEditPart - edit part for PaletteToolbarMethods in org.eclipse.gef.ui.palette with parameters of type EditPartModifier and TypeMethodDescriptionprotected EditPartPaletteEditPartFactory.createDrawerEditPart(EditPart parentEditPart, Object model) Create DrawerEditPart - edit part for PaletteDrawerPaletteEditPartFactory.createEditPart(EditPart parentEditPart, Object model) protected EditPartPaletteEditPartFactory.createEntryEditPart(EditPart parentEditPart, Object model) Create ToolEntryEditPart - edit part for ToolEntryprotected EditPartPaletteEditPartFactory.createGroupEditPart(EditPart parentEditPart, Object model) Create GroupEditPart - edit part for PaletteGroupprotected EditPartPaletteEditPartFactory.createMainPaletteEditPart(EditPart parentEditPart, Object model) Create SliderPaletteEditPart - edit part for PaletteRootprotected EditPartPaletteEditPartFactory.createSeparatorEditPart(EditPart parentEditPart, Object model) Create SeparatorEditPart - edit part for PaletteSeparatorprotected EditPartPaletteEditPartFactory.createStackEditPart(EditPart parentEditPart, Object model) Create PaletteStackEditPart - edit part for PaletteStackprotected EditPartPaletteEditPartFactory.createTemplateEditPart(EditPart parentEditPart, Object model) Create TemplateEditPart - edit part for PaletteTemplateEntryprotected EditPartPaletteEditPartFactory.createToolbarEditPart(EditPart parentEditPart, Object model) Create ToolbarEditPart - edit part for PaletteToolbarvoid
- 
Uses of EditPart in org.eclipse.gef.ui.partsFields in org.eclipse.gef.ui.parts declared as EditPartFields in org.eclipse.gef.ui.parts with type parameters of type EditPartModifier and TypeFieldDescriptionAbstractEditPartViewer.constantSelectionThe unmodifiable list of selected editparts.AbstractEditPartViewer.selectionThe raw list of selected editparts.Methods in org.eclipse.gef.ui.parts that return EditPartModifier and TypeMethodDescriptionprotected EditPartSelectionSynchronizer.convert(EditPartViewer viewer, EditPart part) Maps the given editpart from one viewer to an editpart in another viewer.final EditPartAbstractEditPartViewer.findObjectAt(Point pt) final EditPartAbstractEditPartViewer.findObjectAtExcluding(Point pt, Collection<IFigure> exclude) GraphicalViewerImpl.findObjectAtExcluding(Point pt, Collection<IFigure> exclude, EditPartViewer.Conditional condition) TreeViewer.findObjectAtExcluding(Point pt, Collection exclude, EditPartViewer.Conditional condition) AbstractEditPartViewer.getContents()final EditPartAbstractEditPartViewer.getEditPartForModel(Object model) AbstractEditPartViewer.getFocusEditPart()Methods in org.eclipse.gef.ui.parts that return types with arguments of type EditPartModifier and TypeMethodDescriptionAbstractEditPartViewer.getEditPartRegistry()AbstractEditPartViewer.getSelectedEditParts()AbstractEditPartViewer.getVisualPartMap()AbstractEditPartViewer.primGetSelectedEditParts()Returns the modifiable List of selected EditParts.Methods in org.eclipse.gef.ui.parts with parameters of type EditPartModifier and TypeMethodDescriptionvoidAbstractEditPartViewer.appendSelection(EditPart editpart) protected EditPartSelectionSynchronizer.convert(EditPartViewer viewer, EditPart part) Maps the given editpart from one viewer to an editpart in another viewer.voidprotected voidGraphicalViewerKeyHandler.navigateTo(EditPart part, KeyEvent event) Navigates to the given EditPartprotected voidPaletteViewerKeyHandler.navigateTo(EditPart part, KeyEvent event) voidvoidReveals the specified editpart by usingExposeHelpers.voidExtends the superclass implementation to scroll the native Canvas control after the super's implementation has completed.voidvoidvoidAbstractEditPartViewer.setContents(EditPart editpart) void