}
});
}
private ScriptBuilderUi createScriptBuilder(GlobalDataElements des) {
ScriptBuilderUiFactory factory = new ScriptBuilderUiFactory(project);
factory.setPluginProvider(pluginProvider);
installDebugActions(factory);
interchangeDebugService.setScriptResultHandler(script.getID(), new Receiver<TestResult>() {
@Override
public void handle(TestResult result) {
showResult(result);
}
});
ScriptBuilderUi ui = factory.createScriptBuilder(script, modeSelector,
interchangeDebugService.getPlatformDebugService());
configureCompletionContext(des, ui);
if (latestExpression != null) {
ui.setExpression(latestExpression);
}