Class ReconnectRequest

All Implemented Interfaces:
DropRequest, TargetRequest

public class ReconnectRequest extends LocationRequest implements DropRequest, TargetRequest
A Request to reconnect a connection.
  • Constructor Details

    • ReconnectRequest

      public ReconnectRequest()
      Default constructor.
    • ReconnectRequest

      public ReconnectRequest(Object type)
      Creates a ReconnectRequest with the given type.
      Parameters:
      type - the type
  • Method Details

    • getConnectionEditPart

      public ConnectionEditPart getConnectionEditPart()
      Returns the ConnectionEditPart to be reconnected.
      Returns:
      The ConnectionEditPart to be reconnected.
    • getTarget

      public EditPart getTarget()
      Returns the target edit part that the connection should be connected to.
      Returns:
      the target edit part
    • isMovingStartAnchor

      public boolean isMovingStartAnchor()
      Returns true if the start (source) anchor is the anchor being moved.
      Returns:
      whether the start anchor is being moved
    • setConnectionEditPart

      public void setConnectionEditPart(ConnectionEditPart conn)
      Sets the ConnectionEditPart to be reconnected.
      Parameters:
      conn - The ConnectionEditPart.
    • setTargetEditPart

      public void setTargetEditPart(EditPart ep)
      Sets the target edit part that the connection should be connected to.
      Specified by:
      setTargetEditPart in interface TargetRequest
      Parameters:
      ep - the target edit part