Search in sources :

Example 6 with ScriptInfo

use of org.csstudio.display.builder.model.properties.ScriptInfo in project org.csstudio.display.builder by kasemir.

the class ActionsDialog method getExecuteScriptAction.

/**
 * @return {@link ExecuteScriptActionInfo} from sub pane
 */
private ExecuteScriptActionInfo getExecuteScriptAction() {
    final String file = execute_script_file.getText();
    final String text = (file.equals(ScriptInfo.EMBEDDED_PYTHON) || file.equals(ScriptInfo.EMBEDDED_JAVASCRIPT)) ? execute_script_text.getText() : null;
    return new ExecuteScriptActionInfo(execute_script_description.getText(), new ScriptInfo(file, text, false, Collections.emptyList()));
}
Also used : ScriptInfo(org.csstudio.display.builder.model.properties.ScriptInfo) ExecuteScriptActionInfo(org.csstudio.display.builder.model.properties.ExecuteScriptActionInfo)

Aggregations

ScriptInfo (org.csstudio.display.builder.model.properties.ScriptInfo)6 ExecuteScriptActionInfo (org.csstudio.display.builder.model.properties.ExecuteScriptActionInfo)3 ArrayList (java.util.ArrayList)2 DisplayModel (org.csstudio.display.builder.model.DisplayModel)2 Widget (org.csstudio.display.builder.model.Widget)2 ActionInfo (org.csstudio.display.builder.model.properties.ActionInfo)2 ScriptPV (org.csstudio.display.builder.model.properties.ScriptPV)2 WritePVActionInfo (org.csstudio.display.builder.model.properties.WritePVActionInfo)2 HashMap (java.util.HashMap)1 List (java.util.List)1 ImageView (javafx.scene.image.ImageView)1 MacroValueProvider (org.csstudio.display.builder.model.macros.MacroValueProvider)1 Macros (org.csstudio.display.builder.model.macros.Macros)1 ActionInfos (org.csstudio.display.builder.model.properties.ActionInfos)1 OpenDisplayActionInfo (org.csstudio.display.builder.model.properties.OpenDisplayActionInfo)1 RuleInfo (org.csstudio.display.builder.model.rules.RuleInfo)1 GroupWidget (org.csstudio.display.builder.model.widgets.GroupWidget)1 LabelWidget (org.csstudio.display.builder.model.widgets.LabelWidget)1 RectangleWidget (org.csstudio.display.builder.model.widgets.RectangleWidget)1 TextUpdateWidget (org.csstudio.display.builder.model.widgets.TextUpdateWidget)1