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()));
}
Aggregations