From c3a800be6f2c5153ef833e690ee406304b5188d1 Mon Sep 17 00:00:00 2001 From: lempinen Date: Thu, 11 Apr 2013 12:27:27 +0000 Subject: [PATCH] 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 --- .../src/org/simantics/sysdyn/ui/properties/ModuleInputTab.java | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.47.1