From 651a0d9feb00c3beb617250e8478bae3fc140ecb Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Wed, 30 Jul 2014 07:30:48 +0000 Subject: [PATCH] refs #5093 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/branches/1.8@29939 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/sysdyn/manager/SysdynExperiments.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiments.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiments.java index b48628f2..1e0f76de 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiments.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynExperiments.java @@ -148,9 +148,7 @@ public class SysdynExperiments { } private static void processChild(ReadGraph graph, Variable child, PartialIC IC) throws DatabaseException { - - System.err.println("processChild " + child.getURI(graph)); - + for(Variable c : child.getChildren(graph)) { processChild(graph, c, IC); } @@ -284,9 +282,9 @@ public class SysdynExperiments { Resource child = Layer0Utils.getPossibleChild(graph, model, name); SysdynResource SYSDYN = SysdynResource.getInstance(graph); - if((child != null) && graph.isInstanceOf(child, SYSDYN.InitialCondition)) + if((child != null) && graph.isInstanceOf(child, SYSDYN.InitialCondition)) { + Layer0Utils.addCommentMetadata(graph, "Deleted Initial Condition " + graph.getRelatedValue2(child, Layer0.getInstance(graph).HasName, Bindings.STRING)); RemoverUtil.remove(graph, child); - Layer0Utils.addCommentMetadata(graph, "Deleted Initial Condition " + graph.getRelatedValue2(child, Layer0.getInstance(graph).HasName, Bindings.STRING)); + } } - } -- 2.47.1