Uses of Class
org.eclipse.gef.Request
-
Packages that use Request 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.actions 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 Request Modifier and Type Method Description void
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
.Command
EditPart. getCommand(Request request)
Returns theCommand
to perform the specified Request ornull
.Command
EditPolicy. getCommand(Request request)
Returns theCommand
contribution for the givenRequest
, ornull
.DragTracker
EditPart. getDragTracker(Request request)
Returns aDragTracker
for dragging this EditPart.org.eclipse.draw2d.ConnectionAnchor
NodeEditPart. getSourceConnectionAnchor(Request request)
Returns the sourceConnectionAnchor
for the specified Request.org.eclipse.draw2d.ConnectionAnchor
NodeEditPart. getTargetConnectionAnchor(Request request)
Returns the targetConnectionAnchor
for the specified Request.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
.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, org.eclipse.draw2d.geometry.PrecisionPoint where, org.eclipse.draw2d.geometry.PrecisionPoint result)
Applies a snapping correction to the given result.int
SnapToHelper. snapPoint(Request request, int snapLocations, org.eclipse.draw2d.geometry.PrecisionRectangle[] rects, org.eclipse.draw2d.geometry.PrecisionPoint result)
A convenience method for snapping a Point based on an array of rectangles.int
CompoundSnapToHelper. snapRectangle(Request request, int snapOrientation, org.eclipse.draw2d.geometry.PrecisionRectangle baseRect, org.eclipse.draw2d.geometry.PrecisionRectangle result)
int
SnapToGeometry. snapRectangle(Request request, int snapOrientation, org.eclipse.draw2d.geometry.PrecisionRectangle baseRect, org.eclipse.draw2d.geometry.PrecisionRectangle result)
int
SnapToGrid. snapRectangle(Request request, int snapLocations, org.eclipse.draw2d.geometry.PrecisionRectangle rect, org.eclipse.draw2d.geometry.PrecisionRectangle result)
int
SnapToGuides. snapRectangle(Request request, int snapOrientation, org.eclipse.draw2d.geometry.PrecisionRectangle baseRect, org.eclipse.draw2d.geometry.PrecisionRectangle result)
int
SnapToHelper. snapRectangle(Request request, int snapOrientation, org.eclipse.draw2d.geometry.PrecisionRectangle[] baseRects, org.eclipse.draw2d.geometry.PrecisionRectangle result)
A convenience method for snapping a Rectangle based on one or more rectangles.abstract int
SnapToHelper. snapRectangle(Request request, int snapOrientation, org.eclipse.draw2d.geometry.PrecisionRectangle baseRect, org.eclipse.draw2d.geometry.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 Request Modifier and Type Method Description protected 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 Request Modifier and Type Method Description void
AbstractEditPart. eraseSourceFeedback(Request request)
Erases source feedback for the givenRequest
.void
AbstractEditPart. eraseTargetFeedback(Request request)
Erases target feedback for the givenRequest
.Command
AbstractEditPart. getCommand(Request request)
Subclasses should rarely extend this method.Command
GraphicalRootEditPart. getCommand(Request req)
Deprecated.Returns the unexecutable command.Command
RootTreeEditPart. getCommand(Request request)
Command
SimpleRootEditPart. getCommand(Request req)
The RootEditPart should never be asked for a command.DragTracker
AbstractConnectionEditPart. getDragTracker(Request req)
DragTracker
AbstractGraphicalEditPart. getDragTracker(Request request)
Overridden to return a defaultDragTracker
for GraphicalEditParts.DragTracker
AbstractTreeEditPart. getDragTracker(Request req)
DragTracker
FreeformGraphicalRootEditPart. getDragTracker(Request req)
Should not be called, but returns a MarqeeDragTracker for good measure.DragTracker
GraphicalRootEditPart. getDragTracker(Request req)
Deprecated.Should never be called.DragTracker
RootTreeEditPart. getDragTracker(Request request)
This method will never be called on a tree root.DragTracker
ScalableRootEditPart. getDragTracker(Request req)
Should not be called, but returns a MarqeeDragTracker for good measure.EditPart
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 Request Modifier and Type Method Description protected org.eclipse.draw2d.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.Command
AbstractEditPolicy. getCommand(Request request)
Returnsnull
by default.Command
BendpointEditPolicy. getCommand(Request request)
Factors the Request into either a MOVE, a DELETE, or a CREATE of a bendpoint.Command
ComponentEditPolicy. getCommand(Request request)
Factors the incoming Request into ORPHANs and DELETEs.Command
ConnectionEditPolicy. getCommand(Request request)
Command
ConnectionEndpointEditPolicy. getCommand(Request request)
Command
ConstrainedLayoutEditPolicy. getCommand(Request request)
Factors out RESIZE and ALIGN requests, otherwise callssuper
.Command
ContainerEditPolicy. getCommand(Request request)
Overridden to check for add, create, and orphan.Command
DirectEditPolicy. getCommand(Request request)
Command
GraphicalNodeEditPolicy. getCommand(Request request)
Factors the request into one of four abstract methods.Command
LayoutEditPolicy. getCommand(Request request)
Factors incoming requests into various specific methods.Command
NonResizableEditPolicy. getCommand(Request request)
Command
ResizableEditPolicy. getCommand(Request request)
Command
TreeContainerEditPolicy. getCommand(Request req)
protected java.lang.Object
ConstrainedLayoutEditPolicy. getConstraintFor(Request request, GraphicalEditPart child, org.eclipse.draw2d.geometry.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 java.lang.Object
XYLayoutEditPolicy. getConstraintFor(Request request, GraphicalEditPart child, org.eclipse.draw2d.geometry.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.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.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.requests Modifier and Type Class Description class
AlignmentRequest
A request to align multiple objects.class
BendpointRequest
A request to alter a bendpoint.class
ChangeBoundsRequest
A Request to change the bounds of the EditPart(s).class
CreateConnectionRequest
A Request to create a new Connection.class
CreateRequest
A Request to create a new object.class
DirectEditRequest
A request to perform direct editing on the receiver of the Request.class
ForwardedRequest
A Request to be forwarded to another EditPart.class
GroupRequest
A Request from multiple EditParts.class
LocationRequest
A Request that needs to keep track of a location.class
ReconnectRequest
A Request to reconnect a connection.class
SelectionRequest
A request to select an edit part. -
Uses of Request in org.eclipse.gef.tools
Methods in org.eclipse.gef.tools that return Request Modifier and Type Method Description protected 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 Request Modifier and Type Method Description static void
ToolUtilities. filterEditPartsUnderstanding(java.util.List 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 Request Modifier and Type Method Description protected Request
DirectEditAction. getDirectEditRequest()
Returns theRequest
being used.Methods in org.eclipse.gef.ui.actions with parameters of type Request Modifier and Type Method Description protected org.eclipse.draw2d.geometry.Rectangle
AlignmentAction. calculateAlignmentRectangle(Request request)
Returns the alignment rectangle to which all selected parts should be aligned.protected java.util.List
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.
-