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;
String name = graph.getRelatedValue(script, L0.HasName);
Resource componentType = graph.getSingleObject(script, STR.ComponentType_hasScript_Inverse);
String ctName = graph.getRelatedValue(componentType, L0.HasName);
- return ctName + " " + name;
+ return ctName + " " + name; //$NON-NLS-1$
}
},
}
private static final String[] EXECUTION_PHASES = new String[] {
- "step",
- "analogAutomation",
- "binaryAutomation",
- "preparation"
+ "pre-step", //$NON-NLS-1$
+ "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[] {
- "Execute at each step",
- "Execute together with analog automation",
- "Execute together with binary automation",
- "Execute during preparation"
+ Messages.ComponentTypeScriptEditor_ExecuteBeforeEachStep,
+ Messages.ComponentTypeScriptEditor_ExecuteAtEachStep,
+ Messages.ComponentTypeScriptEditor_ExecuteAfterEachStep,
+ Messages.ComponentTypeScriptEditor_ExecuteAnalogAutomation,
+ Messages.ComponentTypeScriptEditor_ExecuteBinaryAutomation,
+ Messages.ComponentTypeScriptEditor_ExecuteDuringPreparation
};
@Override