return model;
}
private ScriptBuilderUi createScriptBuilder(IntegrationProject project, ScriptModeSelector modeSelector,
Node target, String expression) {
ScriptBuilderUi scriptBuilder = new ScriptBuilderUi(scriptModel, modeSelector);
scriptBuilder.setSourceTree(sourceTreeLayout);
scriptBuilder.setFunctionSelector(DefaultSelectorsBuilder.buildFunctionSelector());
scriptBuilder.setProjectItemSelector(DefaultSelectorsBuilder.buildProjectItemSelector(scriptModel));
scriptBuilder.setDataElementSelector(DefaultSelectorsBuilder.buildDataElementSelector(project));
scriptBuilder.setPluginSelector(createPluginSelector());
scriptBuilder.setDebugUi(createScriptTestUi(target));
scriptBuilder.setExpression(checkEmptyExpression(expression));
scriptBuilder.setDefaultCaretPosition();
configureCompletionContext(scriptBuilder);
return scriptBuilder;
}