public class CreateConnectionRequest extends CreateRequest implements TargetRequest
| Constructor and Description |
|---|
CreateConnectionRequest() |
| Modifier and Type | Method and Description |
|---|---|
EditPart |
getSourceEditPart()
Returns the EditPart that the source end of the connection should be
connected to.
|
Command |
getStartCommand()
Returns the start command.
|
EditPart |
getTargetEditPart()
Returns the EditPart that the target end of the connection should be
connected to.
|
void |
setSourceEditPart(EditPart part)
Sets the source of the Connection to the given EditPart.
|
void |
setStartCommand(Command c)
Sets the start command.
|
void |
setTargetEditPart(EditPart part)
Sets the target of the Connection to the given EditPart.
|
getFactory, getLocation, getNewObject, getNewObjectType, getSize, isSnapToEnabled, setFactory, setLocation, setSize, setSnapToEnabledgetExtendedData, getType, setExtendedData, setTypepublic EditPart getSourceEditPart()
public EditPart getTargetEditPart()
public Command getStartCommand()
public void setSourceEditPart(EditPart part)
part - the source EditPartpublic void setTargetEditPart(EditPart part)
setTargetEditPart in interface TargetRequestpart - the target EditPartpublic void setStartCommand(Command c)
c - the commandCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.