]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Removed deprecated Sheet Experiment/run creation from new sysdyn model creation.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 22 Dec 2014 08:08:08 +0000 (08:08 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 22 Dec 2014 08:08:08 +0000 (08:08 +0000)
New models will not receive the Sheet Experiment the old models have but no migrations exist to remove the existing ones.

refs #5484

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30722 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/utils/ModelUtils.java

index 98fb37c0c6362a86eefd56afe3b806a0a6519ce2..29c6264909b7e56af23ce17fa524dd1a6d3ce0c7 100644 (file)
@@ -153,14 +153,15 @@ public class ModelUtils {
                     DOC.HasReportFactory, report,\r
                     l0.PartOf, model);\r
 \r
-            Resource sheetExperiment = GraphUtils.create2(g, SHEET.Experiment,\r
-                    l0.HasName, "SheetExperiment",\r
-                    l0.HasLabel, "Sheet Experiment",\r
-                    l0.PartOf, model);\r
-\r
-            Resource sheetRun = GraphUtils.create2(g, SHEET.Run,\r
-                    l0.HasName, "Default",\r
-                    l0.PartOf, sheetExperiment);\r
+            // #5484: removed (deprecated) sheet experiment from new models\r
+//            Resource sheetExperiment = GraphUtils.create2(g, SHEET.Experiment,\r
+//                    l0.HasName, "SheetExperiment",\r
+//                    l0.HasLabel, "Sheet Experiment",\r
+//                    l0.PartOf, model);\r
+//\r
+//            Resource sheetRun = GraphUtils.create2(g, SHEET.Run,\r
+//                    l0.HasName, "Default",\r
+//                    l0.PartOf, sheetExperiment);\r
 \r
             ProjectResource PROJ = ProjectResource.getInstance(g);\r
             for(Resource dep : g.getObjects(library, l0.IsLinkedTo)) {\r