defaultCtx.addAdditionalContext(variableCtx);
}
private void installScriptScanner(GlobalDataElements des) {
ExpressionParser parser = new ExpressionParser(script);
ExpressionScanner scanner = new ExpressionScanner(script, des, parser) {
@Override
protected String getExpression() {
return scriptBuilder.getExpression();
}
};
// HACK: Copied and pasted from ScriptPanel
scanner.setScriptBuilderModel(scriptBuilder.getModel());
ScriptTestUi debugUi = scriptBuilder.getDebugUi();
if (debugUi != null) {
scanner.setDebugModel(debugUi.getModel());
}
scanner.install(scriptBuilder.getExpressionArea().getTextPane());
}