Package org.jitterbit.integration.data.script

Examples of org.jitterbit.integration.data.script.FunctionInserter


        this.parser = parser;
    }

    @Override
    public FunctionInserter getInserter(Function f) {
        FunctionInserter inserter = lookup.getInserter(f);
        if (inserter instanceof SourceTreeAwareFunctionInserter) {
            ((SourceTreeAwareFunctionInserter) inserter).setSourceTree(sourceTreeFactory);
        }
        if (inserter instanceof TestableFunctionInserter && parser != null) {
            ((TestableFunctionInserter) inserter).setParser(parser);
View Full Code Here


        return ins;
    }

    private FunctionInserter createInserterForBusinessAnalyst(Function f) {
        FunctionRegistry registry = FunctionRegistry.getRegistry();
        FunctionInserter inserter = registry.getFunctionInserter(f);
        if (inserter == null) {
            return createDefaultInserter(f);
        }
        if (inserter instanceof ProjectItemFunctionInserter) {
            ((ProjectItemFunctionInserter) inserter).setProject(project);
View Full Code Here

        };
    }

    public void insertFunction(Function function) {
        if (isEditable()) {
            final FunctionInserter inserter = functionInserterLookup.getInserter(function);
            requestFocus();
            // XXX: Needed for undo-redo to work properly
            EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    inserter.insertFunction(textPane);
                }
            });
        }
    }
View Full Code Here

        protected CompletionToken getToken(String displayName, int startPos, int cursorPos) {
            Function function = FunctionRegistry.getRegistry().getFunctionByName(displayName);
            if (function.isInstanceFunction() && !withInstanceFunctions) {
                return null;
            }
            FunctionInserter inserter = functionInserterLookup.getInserter(function);
            return inserter.getCompletionToken(startPos, cursorPos, inputComponent);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.script.FunctionInserter

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.