]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Inputs do not display the name (UUID) of experiment runs as their parents (fixes...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 8 Feb 2013 12:33:36 +0000 (12:33 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 8 Feb 2013 12:33:36 +0000 (12:33 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26740 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements/InputFactory.java

index 8c037d46484f3791b560a794aedc3cbb69612dcb..e480fd2a2c64b740ffea9aa5c1803f1dfebccf03 100644 (file)
@@ -140,7 +140,8 @@ public class InputFactory extends SysdynElementFactory {
                                        referenceName = (String) graph.getPossibleRelatedValue(refersTo, l0.HasName);\r
                                        Variable parent = null;\r
                                        parent = v.getParent(graph);\r
-                                       if(parent != null && !graph.isInstanceOf(parent.getRepresents(graph), sr.Configuration)) {\r
+                                       Resource represents = parent.getRepresents(graph);\r
+                                       if(parent != null && !graph.isInstanceOf(represents, sr.Configuration) && !graph.isInstanceOf(represents, sr.Experiment_Run)) {\r
                                                moduleName = parent.getName(graph);\r
                                        }\r
                                        break;\r