Package org.jitterbit.ui.text.contentassist

Examples of org.jitterbit.ui.text.contentassist.CompletionContext


    }

    private void installAutoCompletion(LdapStructureEntryNode entryNode, JTextComponent area) {
        AutoCompleterFactory factory = AutoCompleterFactory.codeEditorFactory();
        factory.setGrabFocus(false);
        CompletionContext context = new FilterCompletionContext(entryNode);
        AutoCompleter completer = factory.createAutoCompleter(context);
        completer.install(area);
    }
View Full Code Here


    private final KongaTextPane field;

    private ExpressionParser parser;

    public VariableField() {
        this(new CompletionContext() {

            @Override
            public CompletionToken[] getAvailableTokens(Document doc, int offset) {
                return new CompletionToken[0];
            }
View Full Code Here

        return field;
    }

    private void installLocationAutoCompletion(KongaTextField field) {
        if (SystemUtils.IS_OS_WINDOWS) {
            CompletionContext ctx = new FilePathCompletionContext(FileUtils.DIRECTORIES);
            DropDownAutoCompleter completer = new DropDownAutoCompleter(ctx);
            completer.install(field);
        }
    }
View Full Code Here

        field.setSelectAllWhenFocused(true);
        return field;
    }
   
    private void installAutoCompletion() {
        CompletionContext ctx = PackageNameCompletionContextBuilder.buildForField();
        AutoCompleterFactory factory = AutoCompleterFactory.dropDownFactory();
        factory.setGrabFocus(false);
        AutoCompleter completer = factory.createAutoCompleter(ctx);
        completer.install(packageField);
    }
View Full Code Here

        textArea.setTabSize(2);
        return textArea;
    }

    private void installAutoCompletion() {
        CompletionContext ctx = PackageNameCompletionContextBuilder.buildForEditor();
        AutoCompleterFactory factory = AutoCompleterFactory.codeEditorFactory();
        factory.setGrabFocus(false);
        AutoCompleter completer = factory.createAutoCompleter(ctx);
        completer.install(textArea);
    }
View Full Code Here

    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

        invalidValues = Maps.newHashMap();
        installAutoComplete();
    }
   
    private void installAutoComplete() {
        CompletionContext context = new TargetFileNameCompletionContext();
        AutoCompleterFactory factory = AutoCompleterFactory.defaultFactory();
        autoCompleter = factory.createAutoCompleter(context);
        autoCompleter.install(getInputComponent());
    }
View Full Code Here

    private void installAutoCompletion(java.io.FileFilter fileFilter, TextInputField field) {
        if (completer != null) {
            completer.uninstall();
        }
        CompletionContext ctx = new FilePathCompletionContext(fileFilter);
        completer = new DropDownAutoCompleter(ctx);
        completer.setDisplayMatchingTokensAfterCompletion(true);
        completer.install(field.getInputComponent());
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.text.contentassist.CompletionContext

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.