Package org.eclipse.gef.requests
Class CreateConnectionRequest
java.lang.Object
org.eclipse.gef.Request
org.eclipse.gef.requests.CreateRequest
org.eclipse.gef.requests.CreateConnectionRequest
- All Implemented Interfaces:
DropRequest,TargetRequest
A Request to create a new Connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the EditPart that the source end of the connection should be connected to.Returns the start command.Returns the EditPart that the target end of the connection should be connected to.voidsetSourceEditPart(EditPart part) Sets the source of the Connection to the given EditPart.voidSets the start command.voidsetTargetEditPart(EditPart part) Sets the target of the Connection to the given EditPart.Methods inherited from class org.eclipse.gef.requests.CreateRequest
getFactory, getLocation, getNewObject, getNewObjectType, getSize, isSnapToEnabled, setFactory, setLocation, setSize, setSnapToEnabledMethods inherited from class org.eclipse.gef.Request
getExtendedData, getType, setExtendedData, setType
-
Constructor Details
-
CreateConnectionRequest
public CreateConnectionRequest()
-
-
Method Details
-
getSourceEditPart
Returns the EditPart that the source end of the connection should be connected to.- Returns:
- the source EditPart
-
getTargetEditPart
Returns the EditPart that the target end of the connection should be connected to.- Returns:
- the target EditPart
-
getStartCommand
Returns the start command. This command is only used to pass on information to the target EditPart so it can create the final command.- Returns:
- the command
-
setSourceEditPart
Sets the source of the Connection to the given EditPart.- Parameters:
part- the source EditPart
-
setTargetEditPart
Sets the target of the Connection to the given EditPart.- Specified by:
setTargetEditPartin interfaceTargetRequest- Parameters:
part- the target EditPart
-
setStartCommand
Sets the start command. This command is only used to pass on information to the target EditPart so it can create the final command.- Parameters:
c- the command
-