git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27186
ac1ea38d-2e2b-0410-8846-
a27921b304fc
return ReferenceOption.DOES_NOT_EXIST;\r
else if(Boolean.TRUE.equals(element))\r
return ReferenceOption.CANNOT_BE_CONNECTED;\r
- else if(element instanceof Variable) {\r
- if(element instanceof Enumeration || element instanceof Sheet)\r
+ else if(element instanceof Variable || element instanceof Module) {\r
+ if(element instanceof Enumeration || element instanceof Sheet || element instanceof Module || parts.length > 1)\r
return ReferenceOption.CANNOT_BE_CONNECTED;\r
else\r
return ReferenceOption.CAN_BE_CONNECTED;\r