From: Tuukka Lehtonen Date: Wed, 1 Jul 2020 08:56:13 +0000 (+0300) Subject: Added new UC SCL script phases post-preparation and cleanup X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=69783774b298eba82dafd6af7e3f76188d04c8ac;p=simantics%2Fplatform.git Added new UC SCL script phases post-preparation and cleanup 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 --- diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeScriptEditor.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeScriptEditor.java index 4d27d6cd6..7d45dc553 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeScriptEditor.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/componentTypeEditor/ComponentTypeScriptEditor.java @@ -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