Package org.eclipse.gef.requests
Class ReconnectRequest
java.lang.Object
org.eclipse.gef.Request
org.eclipse.gef.requests.LocationRequest
org.eclipse.gef.requests.ReconnectRequest
- All Implemented Interfaces:
DropRequest,TargetRequest
A Request to reconnect a connection.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ReconnectRequest(Object type) Creates a ReconnectRequest with the given type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the ConnectionEditPart to be reconnected.Returns the target edit part that the connection should be connected to.booleanReturnstrueif the start (source) anchor is the anchor being moved.voidSets the ConnectionEditPart to be reconnected.voidSets the target edit part that the connection should be connected to.Methods inherited from class org.eclipse.gef.requests.LocationRequest
getLocation, setLocationMethods inherited from class org.eclipse.gef.Request
getExtendedData, getType, setExtendedData, setTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.gef.requests.DropRequest
getLocation
-
Constructor Details
-
ReconnectRequest
public ReconnectRequest()Default constructor. -
ReconnectRequest
Creates a ReconnectRequest with the given type.- Parameters:
type- the type
-
-
Method Details
-
getConnectionEditPart
Returns the ConnectionEditPart to be reconnected.- Returns:
- The ConnectionEditPart to be reconnected.
-
getTarget
Returns the target edit part that the connection should be connected to.- Returns:
- the target edit part
-
isMovingStartAnchor
public boolean isMovingStartAnchor()Returnstrueif the start (source) anchor is the anchor being moved.- Returns:
- whether the start anchor is being moved
-
setConnectionEditPart
Sets the ConnectionEditPart to be reconnected.- Parameters:
conn- The ConnectionEditPart.
-
setTargetEditPart
Sets the target edit part that the connection should be connected to.- Specified by:
setTargetEditPartin interfaceTargetRequest- Parameters:
ep- the target edit part
-