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 SummaryConstructors
- 
Method SummaryModifier 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.CreateRequestgetFactory, getLocation, getNewObject, getNewObjectType, getSize, isSnapToEnabled, setFactory, setLocation, setSize, setSnapToEnabledMethods inherited from class org.eclipse.gef.RequestgetExtendedData, getType, setExtendedData, setType
- 
Constructor Details- 
CreateConnectionRequestpublic CreateConnectionRequest()
 
- 
- 
Method Details- 
getSourceEditPartReturns the EditPart that the source end of the connection should be connected to.- Returns:
- the source EditPart
 
- 
getTargetEditPartReturns the EditPart that the target end of the connection should be connected to.- Returns:
- the target EditPart
 
- 
getStartCommandReturns 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
 
- 
setSourceEditPartSets the source of the Connection to the given EditPart.- Parameters:
- part- the source EditPart
 
- 
setTargetEditPartSets the target of the Connection to the given EditPart.- Specified by:
- setTargetEditPartin interface- TargetRequest
- Parameters:
- part- the target EditPart
 
- 
setStartCommandSets 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
 
 
-