Package org.jitterbit.ui.text.contentassist

Examples of org.jitterbit.ui.text.contentassist.AutoCompleter.install()


    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);
    }

    private void installBracketMatching(JTextComponent area) {
        EnumSet<BracketType> brackets = EnumSet.of(BracketType.PARENTHESES);
        BracketMatcher matcher = new BracketMatcher(area, brackets);
View Full Code Here


        // has an input argument that gets automatically highlighted. The
        // token implementation returned by the FormulaBuilder's completion
        // context handles the focus issues themselves.
        factory.setGrabFocus(false);
        AutoCompleter autoCompleter = factory.createAutoCompleter(context);
        autoCompleter.install(inputArea.getTextPane());
        return context;
    }
   
    public void installCharacterMatching() {
        BracketMatcher matcher = new BracketMatcher(inputArea.getTextPane(), EnumSet.of(BracketType.PARENTHESES)) {
View Full Code Here

    private void installAutoCompletion() {
        CompletionContext ctx = PackageNameCompletionContextBuilder.buildForField();
        AutoCompleterFactory factory = AutoCompleterFactory.dropDownFactory();
        factory.setGrabFocus(false);
        AutoCompleter completer = factory.createAutoCompleter(ctx);
        completer.install(packageField);
    }

    @Override
    public void decorate(UiCanvas canvas) {
        packageField.asUiProvider().decorate(canvas);
View Full Code Here

    private void installAutoCompletion() {
        CompletionContext ctx = PackageNameCompletionContextBuilder.buildForEditor();
        AutoCompleterFactory factory = AutoCompleterFactory.codeEditorFactory();
        factory.setGrabFocus(false);
        AutoCompleter completer = factory.createAutoCompleter(ctx);
        completer.install(textArea);
    }
   
    private void installAutoIndent() {
        IndentLevelCalculator calculator = new IndentLevelCalculator();
        textArea.getActionMap().put(DefaultEditorKit.insertBreakAction, new NewLineAction(calculator));
View Full Code Here

    private AutoCompleter installAutoComplete(CompletionContext cc, JTextComponent tc) {
        AutoCompleterFactory factory = AutoCompleterFactory.defaultFactory();
        factory.setListFactory(ComponentFactories.monoSpacedListFactory());
        factory.setMaxCharsWidth(75);
        AutoCompleter ac = factory.createAutoCompleter(cc);
        ac.install(tc);
        return ac;
    }
   
    private KeyBindingInstaller bindRefresher(JTextComponent tc) {
        assert (completionContext != null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.