1. pre-step: executed during each simulation step,
before native simulation stepping
2. post-step: executed during each simulation step,
after native and all other stepping logics
The purpose of these is to allow simulation step initialization and
finalization with UC SCL scripts.
gitlab #389
Change-Id: Idbd818f80f30c3bdaefdf75a6c11f0747a9a6a26
import org.simantics.db.request.Read;
import org.simantics.layer0.Layer0;
import org.simantics.scl.ui.editor.SCLSourceViewerConfigurationNew;
import org.simantics.db.request.Read;
import org.simantics.layer0.Layer0;
import org.simantics.scl.ui.editor.SCLSourceViewerConfigurationNew;
-import org.simantics.scl.ui.editor.SharedTextColorsNew;
import org.simantics.structural.stubs.StructuralResource2;
import org.simantics.ui.workbench.IResourceEditorInput;
import org.simantics.ui.workbench.TitleUpdater;
import org.simantics.structural.stubs.StructuralResource2;
import org.simantics.ui.workbench.IResourceEditorInput;
import org.simantics.ui.workbench.TitleUpdater;
}
private static final String[] EXECUTION_PHASES = new String[] {
}
private static final String[] EXECUTION_PHASES = new String[] {
+ "pre-step", //$NON-NLS-1$
+ "post-step", //$NON-NLS-1$
"analogAutomation", //$NON-NLS-1$
"binaryAutomation", //$NON-NLS-1$
"preparation" //$NON-NLS-1$
};
private static final String[] EXECUTION_PHASE_LABELS = new String[] {
"analogAutomation", //$NON-NLS-1$
"binaryAutomation", //$NON-NLS-1$
"preparation" //$NON-NLS-1$
};
private static final String[] EXECUTION_PHASE_LABELS = new String[] {
+ Messages.ComponentTypeScriptEditor_ExecuteBeforeEachStep,
Messages.ComponentTypeScriptEditor_ExecuteAtEachStep,
Messages.ComponentTypeScriptEditor_ExecuteAtEachStep,
+ Messages.ComponentTypeScriptEditor_ExecuteAfterEachStep,
Messages.ComponentTypeScriptEditor_ExecuteAnalogAutomation,
Messages.ComponentTypeScriptEditor_ExecuteBinaryAutomation,
Messages.ComponentTypeScriptEditor_ExecuteDuringPreparation
Messages.ComponentTypeScriptEditor_ExecuteAnalogAutomation,
Messages.ComponentTypeScriptEditor_ExecuteBinaryAutomation,
Messages.ComponentTypeScriptEditor_ExecuteDuringPreparation
private static final String BUNDLE_NAME = "org.simantics.modeling.ui.componentTypeEditor.messages"; //$NON-NLS-1$
public static String ComponentTypeEditor_UserComponentInterface;
public static String ComponentTypeScriptEditor_ExecuteAnalogAutomation;
private static final String BUNDLE_NAME = "org.simantics.modeling.ui.componentTypeEditor.messages"; //$NON-NLS-1$
public static String ComponentTypeEditor_UserComponentInterface;
public static String ComponentTypeScriptEditor_ExecuteAnalogAutomation;
+ public static String ComponentTypeScriptEditor_ExecuteAfterEachStep;
public static String ComponentTypeScriptEditor_ExecuteAtEachStep;
public static String ComponentTypeScriptEditor_ExecuteAtEachStep;
+ public static String ComponentTypeScriptEditor_ExecuteBeforeEachStep;
public static String ComponentTypeScriptEditor_ExecuteBinaryAutomation;
public static String ComponentTypeScriptEditor_ExecuteDuringPreparation;
public static String ComponentTypeViewer_OpenedInReadOnly;
public static String ComponentTypeScriptEditor_ExecuteBinaryAutomation;
public static String ComponentTypeScriptEditor_ExecuteDuringPreparation;
public static String ComponentTypeViewer_OpenedInReadOnly;
ComponentTypeEditor_UserComponentInterface=User Component Interface
ComponentTypeScriptEditor_ExecuteAnalogAutomation=Execute together with analog automation
ComponentTypeEditor_UserComponentInterface=User Component Interface
ComponentTypeScriptEditor_ExecuteAnalogAutomation=Execute together with analog automation
+ComponentTypeScriptEditor_ExecuteAfterEachStep=Execute after each step
ComponentTypeScriptEditor_ExecuteAtEachStep=Execute at each step
ComponentTypeScriptEditor_ExecuteAtEachStep=Execute at each step
+ComponentTypeScriptEditor_ExecuteBeforeEachStep=Execute before each step
ComponentTypeScriptEditor_ExecuteBinaryAutomation=Execute together with binary automation
ComponentTypeScriptEditor_ExecuteDuringPreparation=Execute during preparation
ComponentTypeViewer_OpenedInReadOnly=(Opened in read-only mode)
ComponentTypeScriptEditor_ExecuteBinaryAutomation=Execute together with binary automation
ComponentTypeScriptEditor_ExecuteDuringPreparation=Execute during preparation
ComponentTypeViewer_OpenedInReadOnly=(Opened in read-only mode)