From: jsimomaa Date: Wed, 30 Jul 2014 07:30:48 +0000 (+0000) Subject: refs #5093 X-Git-Tag: 1.8.1 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=f422b00eaad58951400b894824fdaa2dbfb3f5c2;p=simantics%2Fsysdyn.git refs #5093 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/branches/1.8@29939 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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)); + } } - }