From: lempinen Date: Thu, 11 Apr 2013 12:27:27 +0000 (+0000) Subject: Display only allowed input variables in ModuleInputTab (fixes #4252) X-Git-Tag: simantics-1.10^0 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c3a800be6f2c5153ef833e690ee406304b5188d1;p=simantics%2Fsysdyn.git Display only allowed input variables in ModuleInputTab (fixes #4252) git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27279 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ModuleInputTab.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ModuleInputTab.java index c4c92ac2..0b5b3d68 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ModuleInputTab.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ModuleInputTab.java @@ -68,6 +68,9 @@ public class ModuleInputTab extends LabelPropertyTabContributor { if(instanceOf == null) return result; Resource configuration = graph.getSingleObject(instanceOf, sr2.IsDefinedBy); for(Resource input : graph.syncRequest(new ObjectsWithType(configuration, l0.ConsistsOf, sr.Input))) { + if(!graph.getObjects(input, sr.Variable_isHeadOf).isEmpty()) + continue; // Only inputs with tail dependencies allowed. + Resource dependency = null; for(Resource dep : graph.getObjects(module, sr.Variable_isHeadOf)) { Resource refersTo = graph.getPossibleObject(dep, sr.Dependency_refersTo);