]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Display only allowed input variables in ModuleInputTab (fixes #4252) simantics-1.10
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 11 Apr 2013 12:27:27 +0000 (12:27 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 11 Apr 2013 12:27:27 +0000 (12:27 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27279 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ModuleInputTab.java

index c4c92ac28bfbbb9cda2ee59a58a29b186a99622a..0b5b3d6874298ea6eda73590a88c56869ed30baa 100644 (file)
@@ -68,6 +68,9 @@ public class ModuleInputTab extends LabelPropertyTabContributor {
                 if(instanceOf == null) return result;\r
                 Resource configuration = graph.getSingleObject(instanceOf, sr2.IsDefinedBy);\r
                 for(Resource input : graph.syncRequest(new ObjectsWithType(configuration, l0.ConsistsOf, sr.Input))) {\r
+                    if(!graph.getObjects(input, sr.Variable_isHeadOf).isEmpty())\r
+                        continue; // Only inputs with tail dependencies allowed.\r
+                    \r
                     Resource dependency = null;\r
                     for(Resource dep : graph.getObjects(module, sr.Variable_isHeadOf)) {\r
                         Resource refersTo = graph.getPossibleObject(dep, sr.Dependency_refersTo);\r