]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixed Sysdyn connection builder to work with the changes that have been made to Conne...
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 11 Mar 2013 06:53:15 +0000 (06:53 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 11 Mar 2013 06:53:15 +0000 (06:53 +0000)
refs #4114

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27046 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/participant/SysdynConnectionBuilder.java

index 1b4095872831c07151c570b98aa44726518080b2..19e93e0d7c9c60c589ca1ed40f695230a41237d3 100644 (file)
@@ -111,8 +111,8 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{
         // 4. Connect start/end terminals if those exist.\r
         // If first/lastBranchPoint != null, connect to those.\r
         // Otherwise connect the start/end terminals together.\r
-        Resource startConnector = null;\r
-        Resource endConnector = null;\r
+        Connector startConnector = null;\r
+        Connector endConnector = null;\r
         IElement startFlag = null;\r
         IElement endFlag = null;\r
 \r
@@ -150,10 +150,10 @@ public class SysdynConnectionBuilder extends ConnectionBuilder{
         }\r
 \r
         if (firstBranchPoint == null || lastBranchPoint == null) {\r
-            cu.connect(startConnector, endConnector);\r
+            cu.connect(startConnector.getConnector(), endConnector.getConnector());\r
         } else {\r
-            cu.connect(startConnector, firstBranchPoint);\r
-            cu.connect(lastBranchPoint, endConnector);\r
+            cu.connect(startConnector.getConnector(), firstBranchPoint);\r
+            cu.connect(lastBranchPoint, endConnector.getConnector());\r
         }\r
 \r
         // 5. Finally, set connection type according to modelling rules\r