示例#1
0
 protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
   support.setCharacterPairMatcher(pairMatcher);
   support.setMatchingCharacterPainterPreferenceKeys(
       org.eclipse.jdt.ui.PreferenceConstants.EDITOR_MATCHING_BRACKETS,
       org.eclipse.jdt.ui.PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR);
   super.configureSourceViewerDecorationSupport(support);
 }
示例#2
0
 @Override
 protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
   super.configureSourceViewerDecorationSupport(support);
   support.setCharacterPairMatcher(fBracketMatcher);
   support.setMatchingCharacterPainterPreferenceKeys(
       PydevEditorPrefs.USE_MATCHING_BRACKETS, PydevEditorPrefs.MATCHING_BRACKETS_COLOR);
 }
  @Override
  protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {

    support.setCharacterPairMatcher(this.fBracketMatcher);
    support.setMatchingCharacterPainterPreferenceKeys(
        PreferenceConstants.EDITOR_MATCHING_BRACKETS,
        PreferenceConstants.EDITOR_MATCHING_BRACKETS_COLOR);

    super.configureSourceViewerDecorationSupport(support);
  }
示例#4
0
 // for bracket matching
 @Override
 protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
   super.configureSourceViewerDecorationSupport(support);
   char[] brackets = {'(', ')', '[', ']'};
   ICharacterPairMatcher matcher =
       new DefaultCharacterPairMatcher(brackets, IDocumentExtension3.DEFAULT_PARTITIONING);
   support.setCharacterPairMatcher(matcher);
   support.setMatchingCharacterPainterPreferenceKeys(
       Activator.PREFERENCE_BRACKET_MATCHING, Activator.PREFERENCE_COLOR_BRACKET_MATCHING);
 }