Uses of Interface
org.eclipse.gef.EditPart
-
Packages that use EditPart Package Description org.eclipse.gef All interfaces, base types, and the plugin class are here.org.eclipse.gef.dnd org.eclipse.gef.editparts This package contains abstract implementation of the EditPart interface.org.eclipse.gef.editpolicies This package contains EditPolicy implementations for many common editing Roles.org.eclipse.gef.requests This package contains the common Request types used by the provided tools and edit policies.org.eclipse.gef.tools This package provides several tool implementations.org.eclipse.gef.ui.palette org.eclipse.gef.ui.parts -
-
Uses of EditPart in org.eclipse.gef
Subinterfaces of EditPart in org.eclipse.gef Modifier and Type Interface Description interface
ConnectionEditPart
A specialization ofGraphicalEditPart
for representing connections.interface
GraphicalEditPart
A Specialization ofEditPart
for use withGraphicalViewers
.interface
NodeEditPart
A specializedGraphicalEditPart
that supports both target and sourceConnectionEditParts
.interface
RootEditPart
A RootEditPart is the root of an EditPartViewer.interface
TreeEditPart
A Specialization ofEditPart
for use withTreeViewer
.Methods in org.eclipse.gef that return EditPart Modifier and Type Method Description EditPart
EditPartFactory. createEditPart(EditPart context, java.lang.Object model)
Creates a new EditPart given the specified context and model.EditPart
EditPartViewer. findObjectAt(org.eclipse.draw2d.geometry.Point location)
Returnsnull
or theEditPart
associated with the specified location.EditPart
EditPartViewer. findObjectAtExcluding(org.eclipse.draw2d.geometry.Point location, java.util.Collection exclusionSet)
Returnsnull
or theEditPart
at the specified location, excluding the specified set.EditPart
EditPartViewer. findObjectAtExcluding(org.eclipse.draw2d.geometry.Point location, java.util.Collection exclusionSet, EditPartViewer.Conditional conditional)
Returnsnull
or theEditPart
at the specified location, using the given exclusion set and conditional.EditPart
EditPartViewer. getContents()
Returns the contents of this Viewer.EditPart
RootEditPart. getContents()
Returns the contents EditPart.protected EditPart
SelectionManager. getFocus()
Returns the focus editpart.EditPart
EditPartViewer. getFocusEditPart()
Returns the focusEditPart
.EditPart
EditPolicy. getHost()
EditPart
EditPart. getParent()
Returns the parentEditPart
.EditPart
ConnectionEditPart. getSource()
EditPart
ConnectionEditPart. getTarget()
EditPart
EditPart. getTargetEditPart(Request request)
Return theEditPart
that should be used as the target for the specifiedRequest
.EditPart
EditPolicy. getTargetEditPart(Request request)
Returnsnull
or the appropriateEditPart
for the specifiedRequest
.Methods in org.eclipse.gef with parameters of type EditPart Modifier and Type Method Description void
EditPartViewer. appendSelection(EditPart editpart)
Appends the specifiedEditPart
to the viewer's selection.void
SelectionManager. appendSelection(EditPart editpart)
Appends theEditPart
to the current selection.void
EditPartListener. childAdded(EditPart child, int index)
Called after a child EditPart has been added to its parent.void
EditPartListener.Stub. childAdded(EditPart child, int index)
EditPart
EditPartFactory. createEditPart(EditPart context, java.lang.Object model)
Creates a new EditPart given the specified context and model.void
EditPartViewer. deselect(EditPart editpart)
Removes the specifiedEditPart
from the current selection.void
SelectionManager. deselect(EditPart editpart)
Removes theEditPart
from the current selection.boolean
AutoexposeHelper.Search. evaluate(EditPart editpart)
boolean
EditPartViewer.Conditional. evaluate(EditPart editpart)
Returnstrue
if the editpart meets this condition.void
ExposeHelper. exposeDescendant(EditPart editpart)
Exposes the specified descendant on the EditPart which returned this helper.void
EditPartListener. partActivated(EditPart editpart)
Called when the editpart has been activated.void
EditPartListener.Stub. partActivated(EditPart editpart)
void
EditPartListener. partDeactivated(EditPart editpart)
Called when the editpart has been deactivated.void
EditPartListener.Stub. partDeactivated(EditPart editpart)
void
EditPartListener. removingChild(EditPart child, int index)
Called before a child EditPart is removed from its parent.void
EditPartListener.Stub. removingChild(EditPart child, int index)
void
EditPartViewer. reveal(EditPart editpart)
Reveals the given EditPart if it is not visible.void
EditPartViewer. select(EditPart editpart)
Replaces the current selection with the specifiedEditPart
.void
EditPartListener. selectedStateChanged(EditPart editpart)
Called when the selected state of an EditPart has changed.void
EditPartListener.Stub. selectedStateChanged(EditPart part)
void
EditPartViewer. setContents(EditPart editpart)
Sets the contents for this Viewer.void
RootEditPart. setContents(EditPart editpart)
Sets the contents EditPart.void
EditPartViewer. setFocus(EditPart focus)
Sets the focus EditPart.void
SelectionManager. setFocus(EditPart part)
Sets the focus part.void
EditPolicy. setHost(EditPart editpart)
Sets the host in which this EditPolicy is installed.void
GraphicalEditPart. setLayoutConstraint(EditPart child, org.eclipse.draw2d.IFigure figure, java.lang.Object constraint)
Sets the specified constraint for a child's Figure on thecontent pane
figure for this GraphicalEditPart.void
EditPart. setParent(EditPart parent)
Sets the parent.
void
ConnectionEditPart. setSource(EditPart source)
Sets the source of this connection.void
ConnectionEditPart. setTarget(EditPart target)
Sets thetarget of this connection. -
Uses of EditPart in org.eclipse.gef.dnd
Methods in org.eclipse.gef.dnd that return EditPart Modifier and Type Method Description protected EditPart
AbstractTransferDropTargetListener. getTargetEditPart()
Returns the current targetEditPart
.Methods in org.eclipse.gef.dnd with parameters of type EditPart Modifier and Type Method Description protected void
AbstractTransferDropTargetListener. setTargetEditPart(EditPart ep)
Sets the targetEditPart
. -
Uses of EditPart in org.eclipse.gef.editparts
Subinterfaces of EditPart in org.eclipse.gef.editparts Modifier and Type Interface Description interface
IScrollableEditPart
Should be implemented by EditParts, to which anScrollableSelectionFeedbackEditPolicy
is 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 EditPart Modifier and Type Class Description class
AbstractConnectionEditPart
The base implementation forConnectionEditPart
.class
AbstractEditPart
The baseline implementation for theEditPart
interface.class
AbstractGraphicalEditPart
Default implementation forGraphicalEditPart
.class
AbstractTreeEditPart
Default implementation forTreeEditPart
s used in GEFTreeViewer
s.class
FreeformGraphicalRootEditPart
A graphical root that usesFreeformFigures
as the layers in the diagram.class
GraphicalRootEditPart
Deprecated.this class will be deleted, use ScrollingGraphicalViewer with ScalableRootEditPart insteadclass
RootTreeEditPart
The root editpart for aTreeViewer
.class
ScalableFreeformRootEditPart
Adds Zoom support to the standard FreeformGraphicalRootEditPart.class
ScalableRootEditPart
A graphical root composed of regularLayers
.class
SimpleRootEditPart
Default implementation of RootEditPart for GraphicalViewers.Fields in org.eclipse.gef.editparts declared as EditPart Modifier and Type Field Description protected EditPart
GraphicalRootEditPart. contents
Deprecated.The contentsMethods in org.eclipse.gef.editparts that return EditPart Modifier and Type Method Description protected EditPart
AbstractEditPart. createChild(java.lang.Object model)
Create the childEditPart
for the given model object.EditPart
GraphicalRootEditPart. getContents()
Deprecated.EditPart
RootTreeEditPart. getContents()
EditPart
SimpleRootEditPart. getContents()
EditPart
AbstractEditPart. getParent()
EditPart
AbstractConnectionEditPart. getSource()
EditPart
AbstractConnectionEditPart. getTarget()
EditPart
AbstractEditPart. getTargetEditPart(Request request)
Returns theEditPart
which is the target of theRequest
.Methods in org.eclipse.gef.editparts with parameters of type EditPart Modifier and Type Method Description protected void
AbstractEditPart. addChild(EditPart child, int index)
Adds a childEditPart
to this EditPart.protected abstract void
AbstractEditPart. addChildVisual(EditPart child, int index)
Performs the addition of the child's visual to this EditPart's Visual.protected void
AbstractGraphicalEditPart. addChildVisual(EditPart childEditPart, int index)
Adds the child's Figure to thecontentPane
.protected void
AbstractTreeEditPart. addChildVisual(EditPart childEditPart, int index)
Implemented to assign the child itswidget
.protected void
RootTreeEditPart. addChildVisual(EditPart childEditPart, int index)
This is where the child gets added.void
ViewportExposeHelper. exposeDescendant(EditPart part)
Exposes the descendant EditPart by smoothly scrolling theViewport
.static LayerManager
LayerManager.Helper. find(EditPart part)
Finds the LayerManager given any EditPart in the Viewer.protected void
AbstractEditPart. fireChildAdded(EditPart child, int index)
NotifiesEditPartListeners
that a child has been added.protected void
AbstractEditPart. fireRemovingChild(EditPart child, int index)
NotifiesEditPartListeners
that a child is being removed.protected void
AbstractEditPart. removeChild(EditPart child)
Removes a childEditPart
.protected abstract void
AbstractEditPart. removeChildVisual(EditPart child)
Removes the childs visual from this EditPart's visual.protected void
AbstractGraphicalEditPart. removeChildVisual(EditPart childEditPart)
Remove the child's Figure from thecontentPane
.protected void
AbstractTreeEditPart. removeChildVisual(EditPart childEditPart)
Disposes the child'swidget
and sets it tonull
.protected void
RootTreeEditPart. removeChildVisual(EditPart childEditPart)
This is where the child gets removed.protected void
AbstractEditPart. reorderChild(EditPart editpart, int index)
Moves a childEditPart
into a lower index than it currently occupies.protected void
AbstractGraphicalEditPart. reorderChild(EditPart child, int index)
This method is extended to preserve a LayoutManager constraint if one exists.protected void
AbstractTreeEditPart. reorderChild(EditPart editpart, int index)
void
GraphicalRootEditPart. setContents(EditPart editpart)
Deprecated.void
RootTreeEditPart. setContents(EditPart editpart)
void
SimpleRootEditPart. setContents(EditPart editpart)
void
AbstractGraphicalEditPart. setLayoutConstraint(EditPart child, org.eclipse.draw2d.IFigure childFigure, java.lang.Object constraint)
void
AbstractConnectionEditPart. setParent(EditPart parent)
Extended to implement automatic addNotify and removeNotify handling.void
AbstractEditPart. setParent(EditPart parent)
Sets the parent EditPart.void
AbstractConnectionEditPart. setSource(EditPart editPart)
Sets the source EditPart of this connection.void
AbstractConnectionEditPart. setTarget(EditPart editPart)
Sets the target EditPart of this connection. -
Uses of EditPart in org.eclipse.gef.editpolicies
Methods in org.eclipse.gef.editpolicies that return EditPart Modifier and Type Method Description EditPart
AbstractEditPolicy. getHost()
protected EditPart
FlowLayoutEditPolicy. getInsertionReference(Request request)
protected abstract EditPart
OrderedLayoutEditPolicy. getInsertionReference(Request request)
Calculates a referenceEditPart
using the specifiedRequest
.EditPart
AbstractEditPolicy. getTargetEditPart(Request request)
Returnsnull
by default.EditPart
GraphicalNodeEditPolicy. getTargetEditPart(Request request)
Returns the host for the appropriateRequests
.EditPart
LayoutEditPolicy. getTargetEditPart(Request request)
Returns the host if the Request is an ADD, MOVE, or CREATE.EditPart
SelectionEditPolicy. getTargetEditPart(Request request)
EditPart
TreeContainerEditPolicy. getTargetEditPart(Request req)
Returns the host EditPart when appropriate.Methods in org.eclipse.gef.editpolicies with parameters of type EditPart Modifier and Type Method Description protected Command
ConstrainedLayoutEditPolicy. createAddCommand(EditPart child, java.lang.Object constraint)
Deprecated.protected Command
ConstrainedLayoutEditPolicy. createAddCommand(ChangeBoundsRequest request, EditPart child, java.lang.Object constraint)
Returns theCommand
to perform an Add with the specified child and constraint.protected abstract Command
OrderedLayoutEditPolicy. createAddCommand(EditPart child, EditPart after)
Returns theCommand
to add the specified child after a referenceEditPart
.protected Command
ConstrainedLayoutEditPolicy. createChangeConstraintCommand(EditPart child, java.lang.Object constraint)
Deprecated.protected Command
ConstrainedLayoutEditPolicy. createChangeConstraintCommand(ChangeBoundsRequest request, EditPart child, java.lang.Object constraint)
The request is now made available when creating the change constraint command.protected EditPolicy
ConstrainedLayoutEditPolicy. createChildEditPolicy(EditPart child)
AResizableEditPolicy
is used by default for children.protected abstract EditPolicy
LayoutEditPolicy. createChildEditPolicy(EditPart child)
Returns the "satellite" EditPolicy used to decorate the child.protected EditPolicy
OrderedLayoutEditPolicy. createChildEditPolicy(EditPart child)
Since Ordered layouts generally don't use constraints, aNonResizableEditPolicy
is used by default for children.protected abstract Command
OrderedLayoutEditPolicy. createMoveChildCommand(EditPart child, EditPart after)
Returns theCommand
to move the specified child before the given referenceEditPart
.protected void
LayoutEditPolicy. decorateChild(EditPart child)
Decorates the child with aEditPolicy.PRIMARY_DRAG_ROLE
such asResizableEditPolicy
.void
AbstractEditPolicy. setHost(EditPart host)
void
ScrollableSelectionFeedbackEditPolicy. setHost(EditPart host)
protected void
LayoutEditPolicy. undecorateChild(EditPart child)
Removes the decoration added inLayoutEditPolicy.decorateChild(EditPart)
. -
Uses of EditPart in org.eclipse.gef.requests
Methods in org.eclipse.gef.requests that return EditPart Modifier and Type Method Description EditPart
ForwardedRequest. getSender()
Returns the EditPart that forwarded this Request.EditPart
CreateConnectionRequest. getSourceEditPart()
Returns the EditPart that the source end of the connection should be connected to.EditPart
ReconnectRequest. getTarget()
Returns the target edit part that the connection should be connected to.EditPart
CreateConnectionRequest. getTargetEditPart()
Returns the EditPart that the target end of the connection should be connected to.Methods in org.eclipse.gef.requests with parameters of type EditPart Modifier and Type Method Description void
GroupRequest. setEditParts(EditPart part)
A helper method to set the given EditPart as the requester.void
CreateConnectionRequest. setSourceEditPart(EditPart part)
Sets the source of the Connection to the given EditPart.void
CreateConnectionRequest. setTargetEditPart(EditPart part)
Sets the target of the Connection to the given EditPart.void
ReconnectRequest. setTargetEditPart(EditPart ep)
Sets the target edit part that the connection should be connected to.void
TargetRequest. setTargetEditPart(EditPart part)
Sets the target EditPart.Constructors in org.eclipse.gef.requests with parameters of type EditPart Constructor Description ForwardedRequest(java.lang.Object type, EditPart sender)
Creates a ForwardRequest with the given type and sets the sender. -
Uses of EditPart in org.eclipse.gef.tools
Methods in org.eclipse.gef.tools that return EditPart Modifier and Type Method Description static EditPart
ToolUtilities. findCommonAncestor(EditPart ll, EditPart rr)
Returns the common parent editpart for given pair of EditParts.protected EditPart
SelectEditPartTracker. getSourceEditPart()
Returns the source edit part.protected EditPart
TargetingTool. getTargetEditPart()
Returnsnull
or the current target editpart.Methods in org.eclipse.gef.tools with parameters of type EditPart Modifier and Type Method Description static EditPart
ToolUtilities. findCommonAncestor(EditPart ll, EditPart rr)
Returns the common parent editpart for given pair of EditParts.static boolean
ToolUtilities. isAncestorContainedIn(java.util.Collection c, EditPart ep)
Checks if collection contains any ancestor of editpartep
protected void
TargetingTool. lockTargetEditPart(EditPart editpart)
Locks-in the given editpart as the target.protected void
AbstractConnectionCreationTool. setConnectionSource(EditPart source)
Sets the source editpart for the creationprotected void
SelectEditPartTracker. setSourceEditPart(EditPart part)
Sets the source edit part.protected void
DragEditPartsTracker. setTargetEditPart(EditPart editpart)
Extended to update the current snap-to strategy.protected void
TargetingTool. setTargetEditPart(EditPart editpart)
Sets the target editpart.Constructors in org.eclipse.gef.tools with parameters of type EditPart Constructor Description DeselectAllTracker(EditPart ep)
Constructs 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.palette
Methods in org.eclipse.gef.ui.palette that return EditPart Modifier and Type Method Description protected EditPart
PaletteEditPartFactory. createDrawerEditPart(EditPart parentEditPart, java.lang.Object model)
Create DrawerEditPart - edit part for PaletteDrawerEditPart
PaletteEditPartFactory. createEditPart(EditPart parentEditPart, java.lang.Object model)
protected EditPart
PaletteEditPartFactory. createEntryEditPart(EditPart parentEditPart, java.lang.Object model)
Create ToolEntryEditPart - edit part for ToolEntryprotected EditPart
PaletteEditPartFactory. createGroupEditPart(EditPart parentEditPart, java.lang.Object model)
Create GroupEditPart - edit part for PaletteGroupprotected EditPart
PaletteEditPartFactory. createMainPaletteEditPart(EditPart parentEditPart, java.lang.Object model)
Create SliderPaletteEditPart - edit part for PaletteRootprotected EditPart
PaletteEditPartFactory. createSeparatorEditPart(EditPart parentEditPart, java.lang.Object model)
Create SeparatorEditPart - edit part for PaletteSeparatorprotected EditPart
PaletteEditPartFactory. createStackEditPart(EditPart parentEditPart, java.lang.Object model)
Create PaletteStackEditPart - edit part for PaletteStackprotected EditPart
PaletteEditPartFactory. createTemplateEditPart(EditPart parentEditPart, java.lang.Object model)
Create TemplateEditPart - edit part for PaletteTemplateEntryprotected EditPart
PaletteEditPartFactory. createToolbarEditPart(EditPart parentEditPart, java.lang.Object model)
Create ToolbarEditPart - edit part for PaletteToolbarMethods in org.eclipse.gef.ui.palette with parameters of type EditPart Modifier and Type Method Description protected EditPart
PaletteEditPartFactory. createDrawerEditPart(EditPart parentEditPart, java.lang.Object model)
Create DrawerEditPart - edit part for PaletteDrawerEditPart
PaletteEditPartFactory. createEditPart(EditPart parentEditPart, java.lang.Object model)
protected EditPart
PaletteEditPartFactory. createEntryEditPart(EditPart parentEditPart, java.lang.Object model)
Create ToolEntryEditPart - edit part for ToolEntryprotected EditPart
PaletteEditPartFactory. createGroupEditPart(EditPart parentEditPart, java.lang.Object model)
Create GroupEditPart - edit part for PaletteGroupprotected EditPart
PaletteEditPartFactory. createMainPaletteEditPart(EditPart parentEditPart, java.lang.Object model)
Create SliderPaletteEditPart - edit part for PaletteRootprotected EditPart
PaletteEditPartFactory. createSeparatorEditPart(EditPart parentEditPart, java.lang.Object model)
Create SeparatorEditPart - edit part for PaletteSeparatorprotected EditPart
PaletteEditPartFactory. createStackEditPart(EditPart parentEditPart, java.lang.Object model)
Create PaletteStackEditPart - edit part for PaletteStackprotected EditPart
PaletteEditPartFactory. createTemplateEditPart(EditPart parentEditPart, java.lang.Object model)
Create TemplateEditPart - edit part for PaletteTemplateEntryprotected EditPart
PaletteEditPartFactory. createToolbarEditPart(EditPart parentEditPart, java.lang.Object model)
Create ToolbarEditPart - edit part for PaletteToolbarvoid
PaletteViewer. reveal(EditPart part)
-
Uses of EditPart in org.eclipse.gef.ui.parts
Fields in org.eclipse.gef.ui.parts declared as EditPart Modifier and Type Field Description protected EditPart
AbstractEditPartViewer. focusPart
Deprecated.Methods in org.eclipse.gef.ui.parts that return EditPart Modifier and Type Method Description protected EditPart
SelectionSynchronizer. convert(EditPartViewer viewer, EditPart part)
Maps the given editpart from one viewer to an editpart in another viewer.EditPart
AbstractEditPartViewer. findObjectAt(org.eclipse.draw2d.geometry.Point pt)
EditPart
AbstractEditPartViewer. findObjectAtExcluding(org.eclipse.draw2d.geometry.Point pt, java.util.Collection exclude)
EditPart
GraphicalViewerImpl. findObjectAtExcluding(org.eclipse.draw2d.geometry.Point pt, java.util.Collection exclude, EditPartViewer.Conditional condition)
EditPart
TreeViewer. findObjectAtExcluding(org.eclipse.draw2d.geometry.Point pt, java.util.Collection exclude, EditPartViewer.Conditional condition)
EditPart
AbstractEditPartViewer. getContents()
EditPart
AbstractEditPartViewer. getFocusEditPart()
Methods in org.eclipse.gef.ui.parts with parameters of type EditPart Modifier and Type Method Description void
AbstractEditPartViewer. appendSelection(EditPart editpart)
protected EditPart
SelectionSynchronizer. convert(EditPartViewer viewer, EditPart part)
Maps the given editpart from one viewer to an editpart in another viewer.void
AbstractEditPartViewer. deselect(EditPart editpart)
protected void
GraphicalViewerKeyHandler. navigateTo(EditPart part, KeyEvent event)
Navigates to the given EditPartprotected void
PaletteViewerKeyHandler. navigateTo(EditPart part, KeyEvent event)
void
AbstractEditPartViewer. reveal(EditPart part)
void
GraphicalViewerImpl. reveal(EditPart part)
Reveals the specified editpart by usingExposeHelper
s.void
ScrollingGraphicalViewer. reveal(EditPart part)
Extends the superclass implementation to scroll the native Canvas control after the super's implementation has completed.void
TreeViewer. reveal(EditPart part)
void
AbstractEditPartViewer. select(EditPart editpart)
void
AbstractEditPartViewer. setContents(EditPart editpart)
void
AbstractEditPartViewer. setFocus(EditPart part)
-