git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18323
ac1ea38d-2e2b-0410-8846-
a27921b304fc
modelingRules.judgeConnection(g, cps); \r
\r
if(judgement.type == ConnectionJudgementType.LEGAL)\r
- return judgement.connectionType;\r
+ return judgement;\r
else\r
return null;\r
}\r
// TODO: broken.\r
connection = ghostDiagram.getMutatedCorrespondence(possibleConnection);\r
} else {\r
+ Object connectionType = connection.getHint(ElementHints.KEY_CONNECTION_TYPE);\r
connection = createConnection(connectionClass);\r
+ connection.setHint(ElementHints.KEY_CONNECTION_TYPE, connectionType);\r
+ \r
ghostDiagram.addElement(connection);\r
}\r
\r