]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Added new UC SCL script phases post-preparation and cleanup
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 1 Jul 2020 08:56:13 +0000 (11:56 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 1 Jul 2020 08:56:13 +0000 (11:56 +0300)
Post-preparation scripts are executed after the possible native solver
preparations have been executed.

The old preparation scripts are executed before native solver
preparation as before.

Cleanup is intended to support defining scripts that are ran just before
the UC is removed from the solver.

gitlab #430
gitlab #431

bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeScriptEditor.java

index 4d27d6cd62ba866d6a512f1bdcf9ee9acb432b7c..7d45dc55372c9152f23fb83e45624959b261b8cb 100644 (file)
@@ -107,7 +107,9 @@ public class ComponentTypeScriptEditor extends SCLModuleEditor {
         "post-step",
         "analogAutomation",
         "binaryAutomation",
-        "preparation"
+        "preparation",
+        "post-preparation",
+        "cleanup"
     };
     
     private static final String[] EXECUTION_PHASE_LABELS = new String[] {
@@ -116,7 +118,9 @@ public class ComponentTypeScriptEditor extends SCLModuleEditor {
         "Execute after each step",
         "Execute together with analog automation",
         "Execute together with binary automation",
-        "Execute during preparation"
+        "Execute before solver preparation",
+        "Execute after solver preparation",
+        "Execute before component removal"
     };
     
     @Override