]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #5093 1.8.1
authorjsimomaa <jsimomaa@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 30 Jul 2014 07:30:48 +0000 (07:30 +0000)
committerjsimomaa <jsimomaa@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 30 Jul 2014 07:30:48 +0000 (07:30 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/branches/1.8@29939 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiments.java

index b48628f246cc75b0af86664f346e87c0deb53ede..1e0f76de6758752d80dd518db2addd64e395d21f 100644 (file)
@@ -148,9 +148,7 @@ public class SysdynExperiments {
     }\r
 \r
        private static void processChild(ReadGraph graph, Variable child, PartialIC IC) throws DatabaseException {\r
-               \r
-               System.err.println("processChild " + child.getURI(graph));\r
-               \r
+\r
                for(Variable c : child.getChildren(graph)) {\r
                        processChild(graph, c, IC);\r
                }\r
@@ -284,9 +282,9 @@ public class SysdynExperiments {
        Resource child = Layer0Utils.getPossibleChild(graph, model, name);\r
        SysdynResource SYSDYN = SysdynResource.getInstance(graph);\r
 \r
-       if((child != null) && graph.isInstanceOf(child, SYSDYN.InitialCondition))\r
+       if((child != null) && graph.isInstanceOf(child, SYSDYN.InitialCondition)) {\r
+               Layer0Utils.addCommentMetadata(graph, "Deleted Initial Condition " + graph.getRelatedValue2(child, Layer0.getInstance(graph).HasName, Bindings.STRING));\r
                RemoverUtil.remove(graph, child);\r
-       Layer0Utils.addCommentMetadata(graph, "Deleted Initial Condition " + graph.getRelatedValue2(child, Layer0.getInstance(graph).HasName, Bindings.STRING));\r
+       }\r
     }\r
-    \r
 }\r