From 0c955ad62e6b60739f14dc2f45f1acf6df37aeab Mon Sep 17 00:00:00 2001 From: lempinen Date: Thu, 21 Mar 2013 11:57:57 +0000 Subject: [PATCH] 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 --- .../src/org/simantics/sysdyn/ui/utils/ExpressionUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.1