]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Removed no such variable error from module references. (refs #4194)
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 21 Mar 2013 11:57:57 +0000 (11:57 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 21 Mar 2013 11:57:57 +0000 (11:57 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27186 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ExpressionUtils.java

index 7fcf67c158284adb28d93d1709375cf8241a3f23..c6a513d17fc0825702712dc998fe90d8606ced1b 100644 (file)
@@ -570,8 +570,8 @@ public class ExpressionUtils {
             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