use of org.eclipse.gef.editparts.AbstractEditPart in project tdi-studio-se by Talend.
the class TalendConnectionCreationTool method performConnectionStartWith.
/**
* The node part of the source must be given in argument. This will define the fist point of the connection.
*
* @param sourcePart the edit part that will be the source of the connection
*/
public void performConnectionStartWith(EditPart sourcePart) {
this.sourcePart = sourcePart;
setConnectionSource(sourcePart);
updateTargetRequest();
Command cmd = ((AbstractEditPart) sourcePart).getCommand(getTargetRequest());
setCurrentCommand(cmd);
setState(STATE_CONNECTION_STARTED);
}
Aggregations