From: lempinen Date: Thu, 21 Mar 2013 11:57:57 +0000 (+0000) Subject: Removed no such variable error from module references. (refs #4194) X-Git-Tag: simantics-1.10~13 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=0c955ad62e6b60739f14dc2f45f1acf6df37aeab;p=simantics%2Fsysdyn.git Removed no such variable error from module references. (refs #4194) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27186 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ExpressionUtils.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ExpressionUtils.java index 7fcf67c1..c6a513d1 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ExpressionUtils.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/ExpressionUtils.java @@ -570,8 +570,8 @@ public class ExpressionUtils { return ReferenceOption.DOES_NOT_EXIST; else if(Boolean.TRUE.equals(element)) return ReferenceOption.CANNOT_BE_CONNECTED; - else if(element instanceof Variable) { - if(element instanceof Enumeration || element instanceof Sheet) + else if(element instanceof Variable || element instanceof Module) { + if(element instanceof Enumeration || element instanceof Sheet || element instanceof Module || parts.length > 1) return ReferenceOption.CANNOT_BE_CONNECTED; else return ReferenceOption.CAN_BE_CONNECTED;