From a0afca76895edf9ea9208cb64f5b39a4bec42da5 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Mon, 11 Mar 2013 06:53:15 +0000 Subject: [PATCH] Fixed Sysdyn connection builder to work with the changes that have been made to ConnectionBuilder. refs #4114 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27046 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../ui/editor/participant/SysdynConnectionBuilder.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java index 1b409587..19e93e0d 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java @@ -111,8 +111,8 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{ // 4. Connect start/end terminals if those exist. // If first/lastBranchPoint != null, connect to those. // Otherwise connect the start/end terminals together. - Resource startConnector = null; - Resource endConnector = null; + Connector startConnector = null; + Connector endConnector = null; IElement startFlag = null; IElement endFlag = null; @@ -150,10 +150,10 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{ } if (firstBranchPoint == null || lastBranchPoint == null) { - cu.connect(startConnector, endConnector); + cu.connect(startConnector.getConnector(), endConnector.getConnector()); } else { - cu.connect(startConnector, firstBranchPoint); - cu.connect(lastBranchPoint, endConnector); + cu.connect(startConnector.getConnector(), firstBranchPoint); + cu.connect(lastBranchPoint, endConnector.getConnector()); } // 5. Finally, set connection type according to modelling rules -- 2.47.1