Package org.jitterbit.integration.client.ui.script.text

Examples of org.jitterbit.integration.client.ui.script.text.ScriptCompletionContext$FunctionTokenFactory


    }

    private void installExpressionAreaAddOns(ExpressionArea area) {
        ScriptBuilderAddOns addOns = new ScriptBuilderAddOns(area);
        addOns.setProject(project);
        ScriptCompletionContext completionContext = addOns.installAutoCompletion();
        area.setCompletionContext(completionContext);
        addOns.installCharacterMatching();
        addOns.installWhitespaceDecorator();
    }
View Full Code Here


    public void setProject(IntegrationProject project) {
        this.project = project;
    }

    public ScriptCompletionContext installAutoCompletion() {
        ScriptCompletionContext context = new ScriptCompletionContext(inputArea);
        if (project != null) {
            context.setGlobalDataElements(project.getGlobalDataElements());
        }
        AutoCompleterFactory factory = AutoCompleterFactory.codeEditorFactory();
        // We don't want the auto completer to do anything about the focus,
        // because it leads to annoying flickering if the completed token
        // has an input argument that gets automatically highlighted. The
View Full Code Here

        return (actions != null) ? actions.all() : new Action[0];
    }

    private void configureCompletionContext(ScriptBuilderUi scriptBuilder) {
        ExpressionArea area = scriptBuilder.getExpressionArea();
        ScriptCompletionContext scriptCompletion = area.getCompletionContext();
        if (scriptCompletion != null) {
            CompletionContext additional = new SourceTreeCompletionContext(sourceTree);
            scriptCompletion.addAdditionalContext(additional);
        }
    }
View Full Code Here

            factory.setDebugActions(Application.getBean(beanId, DebugActions.class));
        }
    }

    private void configureCompletionContext(GlobalDataElements des, ScriptBuilderUi ui) {
        ScriptCompletionContext defaultCtx = ui.getExpressionArea().getCompletionContext();
        VariableCompletionContext variableCtx = new VariableCompletionContext();
        variableCtx.setGlobalDataElements(des);
        defaultCtx.addAdditionalContext(variableCtx);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.script.text.ScriptCompletionContext$FunctionTokenFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.