Uses of Class
org.eclipse.gef.Request
Packages that use Request
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 Request in org.eclipse.gef
Methods in org.eclipse.gef with parameters of type RequestModifier and TypeMethodDescriptionvoid
EditPart.eraseSourceFeedback
(Request request) Erases source feedback for the specifiedRequest
.void
EditPolicy.eraseSourceFeedback
(Request request) Erases source feedback based on the givenRequest
.void
EditPart.eraseTargetFeedback
(Request request) Erases target feedback for the specifiedRequest
.void
EditPolicy.eraseTargetFeedback
(Request request) Erases target feedback based on the givenRequest
.EditPart.getCommand
(Request request) Returns theCommand
to perform the specified Request ornull
.EditPolicy.getCommand
(Request request) Returns theCommand
contribution for the givenRequest
, ornull
.EditPart.getDragTracker
(Request request) Returns aDragTracker
for dragging this EditPart.NodeEditPart.getSourceConnectionAnchor
(Request request) Returns the sourceConnectionAnchor
for the specified Request.NodeEditPart.getTargetConnectionAnchor
(Request request) Returns the targetConnectionAnchor
for the specified Request.EditPart.getTargetEditPart
(Request request) Return theEditPart
that should be used as the target for the specifiedRequest
.EditPolicy.getTargetEditPart
(Request request) Returnsnull
or the appropriateEditPart
for the specifiedRequest
.void
EditPart.performRequest
(Request request) Performs the specified Request.void
EditPart.showSourceFeedback
(Request request) Shows or updates source feedback for the given request.void
EditPolicy.showSourceFeedback
(Request request) Shows or updates source feedback for the specifiedRequest
.void
EditPart.showTargetFeedback
(Request request) Shows or updates target feedback for the given request.void
EditPolicy.showTargetFeedback
(Request request) Shows or updates target feedback for the specifiedRequest
.int
SnapToHelper.snapPoint
(Request request, int snapDirections, PrecisionPoint where, PrecisionPoint result) Applies a snapping correction to the given result.int
SnapToHelper.snapPoint
(Request request, int snapLocations, PrecisionRectangle[] rects, PrecisionPoint result) A convenience method for snapping a Point based on an array of rectangles.int
CompoundSnapToHelper.snapRectangle
(Request request, int snapOrientation, PrecisionRectangle baseRect, PrecisionRectangle result) int
SnapToGeometry.snapRectangle
(Request request, int snapOrientation, PrecisionRectangle baseRect, PrecisionRectangle result) int
SnapToGrid.snapRectangle
(Request request, int snapLocations, PrecisionRectangle rect, PrecisionRectangle result) int
SnapToGuides.snapRectangle
(Request request, int snapOrientation, PrecisionRectangle baseRect, PrecisionRectangle result) int
SnapToHelper.snapRectangle
(Request request, int snapOrientation, PrecisionRectangle[] baseRects, PrecisionRectangle result) A convenience method for snapping a Rectangle based on one or more rectangles.abstract int
SnapToHelper.snapRectangle
(Request request, int snapOrientation, PrecisionRectangle baseRect, PrecisionRectangle result) Applies a snap correction to a Rectangle based on a given Rectangle.boolean
EditPart.understandsRequest
(Request request) Used to filter EditParts out of the current selection.boolean
EditPolicy.understandsRequest
(Request request) Returnstrue
if this EditPolicy understand the specified request. -
Uses of Request in org.eclipse.gef.dnd
Methods in org.eclipse.gef.dnd that return RequestModifier and TypeMethodDescriptionprotected Request
AbstractTransferDropTargetListener.createTargetRequest()
Creates and returns theRequest
that will be sent to the targeted EditPart.protected Request
TemplateTransferDropTargetListener.createTargetRequest()
protected Request
AbstractTransferDropTargetListener.getTargetRequest()
Returns the targetRequest
. -
Uses of Request in org.eclipse.gef.editparts
Methods in org.eclipse.gef.editparts with parameters of type RequestModifier and TypeMethodDescriptionvoid
AbstractEditPart.eraseSourceFeedback
(Request request) Erases source feedback for the givenRequest
.void
AbstractEditPart.eraseTargetFeedback
(Request request) Erases target feedback for the givenRequest
.AbstractEditPart.getCommand
(Request request) Subclasses should rarely extend this method.GraphicalRootEditPart.getCommand
(Request req) Deprecated.Returns the unexecutable command.RootTreeEditPart.getCommand
(Request request) SimpleRootEditPart.getCommand
(Request req) The RootEditPart should never be asked for a command.AbstractConnectionEditPart.getDragTracker
(Request req) AbstractGraphicalEditPart.getDragTracker
(Request request) Overridden to return a defaultDragTracker
for GraphicalEditParts.AbstractTreeEditPart.getDragTracker
(Request req) FreeformGraphicalRootEditPart.getDragTracker
(Request req) Should not be called, but returns a MarqeeDragTracker for good measure.GraphicalRootEditPart.getDragTracker
(Request req) Deprecated.Should never be called.RootTreeEditPart.getDragTracker
(Request request) This method will never be called on a tree root.ScalableRootEditPart.getDragTracker
(Request req) Should not be called, but returns a MarqeeDragTracker for good measure.AbstractEditPart.getTargetEditPart
(Request request) Returns theEditPart
which is the target of theRequest
.void
AbstractEditPart.performRequest
(Request req) Subclasses should extend this method to handle Requests.void
AbstractEditPart.showSourceFeedback
(Request request) Shows or updates source feedback for the givenRequest
.void
AbstractEditPart.showTargetFeedback
(Request request) Shows or updates target feedback for the givenRequest
.boolean
AbstractEditPart.understandsRequest
(Request req) Returnstrue
if thisEditPart
understand the givenRequest
. -
Uses of Request in org.eclipse.gef.editpolicies
Methods in org.eclipse.gef.editpolicies with parameters of type RequestModifier and TypeMethodDescriptionprotected Connection
GraphicalNodeEditPolicy.createDummyConnection
(Request req) Returns a connection to be used as feeback during creates.protected void
FlowLayoutEditPolicy.eraseLayoutTargetFeedback
(Request request) protected void
LayoutEditPolicy.eraseLayoutTargetFeedback
(Request request) Erases target layout feedback.protected void
LayoutEditPolicy.eraseSizeOnDropFeedback
(Request request) Erases size-on-drop feedback used during creation.void
AbstractEditPolicy.eraseSourceFeedback
(Request request) Does nothing by default.void
BendpointEditPolicy.eraseSourceFeedback
(Request request) void
ConnectionEndpointEditPolicy.eraseSourceFeedback
(Request request) void
DirectEditPolicy.eraseSourceFeedback
(Request request) void
GraphicalNodeEditPolicy.eraseSourceFeedback
(Request request) CallsGraphicalNodeEditPolicy.eraseCreationFeedback(CreateConnectionRequest)
when appropriate.void
NonResizableEditPolicy.eraseSourceFeedback
(Request request) void
ResizableEditPolicy.eraseSourceFeedback
(Request request) Dispatches erase requests to more specific methods.void
AbstractEditPolicy.eraseTargetFeedback
(Request request) Does nothing by default.void
GraphicalNodeEditPolicy.eraseTargetFeedback
(Request request) CallsGraphicalNodeEditPolicy.eraseTargetConnectionFeedback(DropRequest)
when appropriate.void
LayoutEditPolicy.eraseTargetFeedback
(Request request) Calls two more specific methods depending on the Request.void
SnapFeedbackPolicy.eraseTargetFeedback
(Request request) void
TreeContainerEditPolicy.eraseTargetFeedback
(Request req) protected Command
ConstrainedLayoutEditPolicy.getAddCommand
(Request generic) OverridesgetAddCommand()
to generate the proper constraint for each child being added.protected Command
LayoutEditPolicy.getAddCommand
(Request request) Override to return theCommand
to perform anADD
.protected Command
OrderedLayoutEditPolicy.getAddCommand
(Request req) This method is overridden from the superclass to calculate the index at which the children should be added.AbstractEditPolicy.getCommand
(Request request) Returnsnull
by default.BendpointEditPolicy.getCommand
(Request request) Factors the Request into either a MOVE, a DELETE, or a CREATE of a bendpoint.ComponentEditPolicy.getCommand
(Request request) Factors the incoming Request into ORPHANs and DELETEs.ConnectionEditPolicy.getCommand
(Request request) ConnectionEndpointEditPolicy.getCommand
(Request request) ConstrainedLayoutEditPolicy.getCommand
(Request request) Factors out RESIZE and ALIGN requests, otherwise callssuper
.ContainerEditPolicy.getCommand
(Request request) Overridden to check for add, create, and orphan.DirectEditPolicy.getCommand
(Request request) GraphicalNodeEditPolicy.getCommand
(Request request) Factors the request into one of four abstract methods.LayoutEditPolicy.getCommand
(Request request) Factors incoming requests into various specific methods.NonResizableEditPolicy.getCommand
(Request request) ResizableEditPolicy.getCommand
(Request request) TreeContainerEditPolicy.getCommand
(Request req) protected Object
ConstrainedLayoutEditPolicy.getConstraintFor
(Request request, GraphicalEditPart child, Rectangle rectangle) Responsible of generating a draw2d constraint for the given Rectangle, which represents the already transformed (layout-relative) position and size of the given Request.protected Object
XYLayoutEditPolicy.getConstraintFor
(Request request, GraphicalEditPart child, Rectangle rect) Overridden to preserve existing width and height (as well as preferred sizes) during MOVE requests.protected Command
LayoutEditPolicy.getDeleteDependantCommand
(Request request) Returns theCommand
to delete a child.protected int
FlowLayoutEditPolicy.getFeedbackIndexFor
(Request request) protected EditPart
FlowLayoutEditPolicy.getInsertionReference
(Request request) protected abstract EditPart
OrderedLayoutEditPolicy.getInsertionReference
(Request request) Calculates a referenceEditPart
using the specifiedRequest
.protected Command
ConstrainedLayoutEditPolicy.getMoveChildrenCommand
(Request request) Returns theCommand
to move a group of children.protected abstract Command
LayoutEditPolicy.getMoveChildrenCommand
(Request request) Returns theCommand
to move a group of children.protected Command
OrderedLayoutEditPolicy.getMoveChildrenCommand
(Request request) A move is interpreted here as a change in order of the children.protected Command
LayoutEditPolicy.getOrphanChildrenCommand
(Request request) Returns theCommand
to orphan a group of children.protected Command
NonResizableEditPolicy.getOrphanCommand
(Request req) Subclasses may override to contribute to the orphan request.AbstractEditPolicy.getTargetEditPart
(Request request) Returnsnull
by 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.protected void
FlowLayoutEditPolicy.showLayoutTargetFeedback
(Request request) Shows an insertion line if there is one or more current children.protected void
LayoutEditPolicy.showLayoutTargetFeedback
(Request request) Shows target layout feedback.void
AbstractEditPolicy.showSourceFeedback
(Request request) Does nothing by default.void
BendpointEditPolicy.showSourceFeedback
(Request request) Shows feedback when appropriate.void
ConnectionEndpointEditPolicy.showSourceFeedback
(Request request) void
DirectEditPolicy.showSourceFeedback
(Request request) void
GraphicalNodeEditPolicy.showSourceFeedback
(Request request) callsGraphicalNodeEditPolicy.showCreationFeedback(CreateConnectionRequest)
when appropriate.void
NonResizableEditPolicy.showSourceFeedback
(Request request) Calls other methods as appropriate.void
ResizableEditPolicy.showSourceFeedback
(Request request) void
AbstractEditPolicy.showTargetFeedback
(Request request) Does nothing by default.void
GraphicalNodeEditPolicy.showTargetFeedback
(Request request) CallsGraphicalNodeEditPolicy.showTargetConnectionFeedback(DropRequest)
when appropriate.void
LayoutEditPolicy.showTargetFeedback
(Request request) Factors feedback requests into two more specific methods.void
SnapFeedbackPolicy.showTargetFeedback
(Request req) void
TreeContainerEditPolicy.showTargetFeedback
(Request req) boolean
AbstractEditPolicy.understandsRequest
(Request req) Returnsfalse
by default.boolean
DirectEditPolicy.understandsRequest
(Request request) Returnstrue
forRequestConstants.REQ_DIRECT_EDIT
.boolean
NonResizableEditPolicy.understandsRequest
(Request request) Returnstrue
for move, align, add, and orphan request types.boolean
ResizableEditPolicy.understandsRequest
(Request request) -
Uses of Request in org.eclipse.gef.requests
Subclasses of Request in org.eclipse.gef.requestsModifier and TypeClassDescriptionclass
A request to align multiple objects.class
A request to alter a bendpoint.class
A Request to change the bounds of the EditPart(s).class
A Request to create a new Connection.class
A Request to create a new object.class
A request to perform direct editing on the receiver of the Request.class
A Request to be forwarded to another EditPart.class
A Request from multiple EditParts.class
A Request that needs to keep track of a location.class
A Request to reconnect a connection.class
A request to select an edit part. -
Uses of Request in org.eclipse.gef.tools
Methods in org.eclipse.gef.tools that return RequestModifier and TypeMethodDescriptionprotected Request
ConnectionBendpointTracker.createSourceRequest()
Creates a BendpointRequest.protected Request
ResizeTracker.createSourceRequest()
protected Request
SimpleDragTracker.createSourceRequest()
Creates and returns a new Request that is used during the drag.protected Request
AbstractConnectionCreationTool.createTargetRequest()
protected Request
ConnectionEndpointTracker.createTargetRequest()
Creates the target request, aReconnectRequest
.protected Request
CreationTool.createTargetRequest()
Creates aCreateRequest
and sets this tool's factory on the request.protected Request
DragEditPartsTracker.createTargetRequest()
Creates aChangeBoundsRequest
.protected Request
SelectionTool.createTargetRequest()
Creates aSelectionRequest
for the target request.protected Request
TargetingTool.createTargetRequest()
Creates the target request that will be used with the target editpart.protected Request
AbstractConnectionCreationTool.getSourceRequest()
Returns the request sent to the source node.protected Request
SimpleDragTracker.getSourceRequest()
Returns the request for the source of the drag, creating it if necessary.protected Request
SelectionTool.getTargetHoverRequest()
Returns the target hover request.protected Request
TargetingTool.getTargetRequest()
Lazily creates and returns the request used when communicating with the target editpart.Methods in org.eclipse.gef.tools with parameters of type RequestModifier and TypeMethodDescriptionstatic void
ToolUtilities.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. returntrue
fromEditPart.understandsRequest(Request)
when passed the given request).protected void
TargetingTool.setTargetRequest
(Request req) Sets the target request. -
Uses of Request in org.eclipse.gef.ui.actions
Methods in org.eclipse.gef.ui.actions that return RequestModifier and TypeMethodDescriptionprotected Request
DirectEditAction.getDirectEditRequest()
Returns theRequest
being used.Methods in org.eclipse.gef.ui.actions with parameters of type RequestModifier and TypeMethodDescriptionprotected Rectangle
AlignmentAction.calculateAlignmentRectangle
(Request request) Returns the alignment rectangle to which all selected parts should be aligned.AlignmentAction.getOperationSet
(Request request) Returns the list of editparts which will participate in alignment.void
DirectEditAction.setDirectEditRequest
(Request req) Clients may override the request that is used to perform the direct edit.