@Override protected void configureSourceViewerDecorationSupport( SourceViewerDecorationSupport support) { super.configureSourceViewerDecorationSupport(support); char[] matchChars = { '<', '>' }; // which brackets to match ICharacterPairMatcher matcher = new DefaultCharacterPairMatcher( matchChars, IDocumentExtension3.DEFAULT_PARTITIONING); support.setCharacterPairMatcher(matcher); support.setMatchingCharacterPainterPreferenceKeys( EDITOR_MATCHING_BRACKETS, EDITOR_MATCHING_BRACKETS_COLOR); // Enable bracket highlighting in the preference store IPreferenceStore store = getPreferenceStore(); store.setDefault(EDITOR_MATCHING_BRACKETS, true); store.setDefault(EDITOR_MATCHING_BRACKETS_COLOR, "128,128,128"); }
@Override protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) { super.configureSourceViewerDecorationSupport(support); DefaultCharacterPairMatcher matcher = new DefaultCharacterPairMatcher( new char[]{'[', ']'}, EditorConstants.BF_PARTITIONING, true); support.setCharacterPairMatcher(matcher); support.setMatchingCharacterPainterPreferenceKeys( EditorConstants.PREF_EDITOR_MATCHING_BRACKETS, EditorConstants.PREF_EDITOR_MATCHING_BRACKETS_COLOR, EditorConstants.PREF_EDITOR_MATCHING_BRACKETS_SHOW_CARET, EditorConstants.PREF_EDITOR_MATCHING_BRACKETS_SHOW_ENCLOSING); }
@Override protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) { super.configureSourceViewerDecorationSupport(support); char[] matchChars = { '(', ')', '[', ']', '{', '}' }; // which brackets // to match matcher = new DefaultCharacterPairMatcher(matchChars, IDocumentExtension3.DEFAULT_PARTITIONING); support.setCharacterPairMatcher(matcher); support.setMatchingCharacterPainterPreferenceKeys(EDITOR_MATCHING_BRACKETS, EDITOR_MATCHING_BRACKETS_COLOR); // Enable bracket highlighting in the preference store IPreferenceStore store = getPreferenceStore(); store.setDefault(EDITOR_MATCHING_BRACKETS, true); store.setDefault(EDITOR_MATCHING_BRACKETS_COLOR, "128,128,128"); }
@Override protected void configureSourceViewerDecorationSupport (@Nullable SourceViewerDecorationSupport support) { super.configureSourceViewerDecorationSupport(support); IPreferenceStore store = getPreferenceStore(); char[] matchChars = {'(', ')', '[', ']', '{', '}'}; //which brackets to match ICharacterPairMatcher matcher = new DefaultCharacterPairMatcher(matchChars , IDocumentExtension3.DEFAULT_PARTITIONING); support.setCharacterPairMatcher(matcher); support.setMatchingCharacterPainterPreferenceKeys(RustConstants.EDITOR_MATCHING_BRACKETS,RustConstants. EDITOR_MATCHING_BRACKETS_COLOR); //Enable bracket highlighting in the preference store store.setDefault(RustConstants.EDITOR_MATCHING_BRACKETS, true); store.setDefault(RustConstants.EDITOR_MATCHING_BRACKETS_COLOR, RustConstants.DEFAULT_MATCHING_BRACKETS_COLOR); }
public ICharacterPairMatcher bindICharacterPairMatcher() { return new DefaultCharacterPairMatcher(new char[] { '(', ')', '{', '}', '[', ']' }); }
@Override protected ICharacterPairMatcher createBracketMatcher() { return new DefaultCharacterPairMatcher("{}[]()".toCharArray(), JuliaPartition.JULIA_PARTITIONING); }