コード例 #1
0
ファイル: GroovyEditor.java プロジェクト: andreyvit/groovy
 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);
 }
コード例 #3
0
  @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
ファイル: HaskellEditor.java プロジェクト: jawu/hsedit
 // 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);
 }