// 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
}\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