Package org.jitterbit.ui.text

Examples of org.jitterbit.ui.text.BracketMatcher$TriggerAction


        completer.install(area);
    }

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


        autoCompleter.install(inputArea.getTextPane());
        return context;
    }
   
    public void installCharacterMatching() {
        BracketMatcher matcher = new BracketMatcher(inputArea.getTextPane(), EnumSet.of(BracketType.PARENTHESES)) {

            @Override
            protected boolean isCharacterMatchingAvailable(int offset) {
                return inputArea.getPartitioner().isCharacterMatchingAvailable(offset);
            }
        };
        matcher.setHighlightColors(Colors.CHARACTER_PAIR_MATCHING_HIGHLIGHT, Colors.CHARACTER_PAIR_MISMATCH_HIGHLIGHT);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.text.BracketMatcher$TriggerAction

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.