From: lempinen Date: Tue, 21 Sep 2010 12:35:02 +0000 (+0000) Subject: Modules list updated when starting a simulation X-Git-Tag: simantics-1.2.0~32 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c4c9ee40118f65078350ad8612705cd4f92f836a;p=simantics%2Fsysdyn.git Modules list updated when starting a simulation git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18025 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java index 128f1ae6..d49606ae 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java @@ -301,6 +301,10 @@ public class SysdynModel implements IMappingListener, IModel { @Override public void run(ReadGraph graph) throws DatabaseException { mapping.updateRange(graph); + for(Resource config : readModules(graph, configurationResource)) { + if(!modules.contains(config)) + modules.add((Configuration)mapping.map(graph, config)); + } } }); return true;