]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Modules list updated when starting a simulation
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 21 Sep 2010 12:35:02 +0000 (12:35 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 21 Sep 2010 12:35:02 +0000 (12:35 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18025 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index 128f1ae6324f15e30800c467fa5eccd86d74b119..d49606ae16cc11d3b6e00864a05007702d1f6672 100644 (file)
@@ -301,6 +301,10 @@ public class SysdynModel implements IMappingListener, IModel {
                                @Override\r
                                public void run(ReadGraph graph) throws DatabaseException {\r
                                        mapping.updateRange(graph);\r
+                                       for(Resource config : readModules(graph, configurationResource)) {\r
+                                               if(!modules.contains(config))\r
+                                                       modules.add((Configuration)mapping.map(graph, config));\r
+                                       }\r
                                }\r
                        });\r
                        return true;\r