use of org.kie.workbench.common.stunner.core.graph.command.impl.SetConnectionSourceNodeCommand in project kie-wb-common by kiegroup.
the class GraphBuilder method addEdge.
private void addEdge(Edge<? extends View<?>, Node> edge, Node source, Connection sourceConnection, Node target, Connection targetConnection) {
SetConnectionSourceNodeCommand setSourceNode = commandFactory.setSourceNode(source, edge, sourceConnection);
SetConnectionTargetNodeCommand setTargetNode = commandFactory.setTargetNode(target, edge, targetConnection);
execute(setSourceNode);
execute(setTargetNode);
}
Aggregations