Examples of addHighlightAnnotationType()


Examples of org.eclipse.jface.text.source.AnnotationPainter.addHighlightAnnotationType()

    attachHighlightPainter(viewer, highlightColor, annotationType);
  }
 
  private void attachHighlightPainter(SourceViewer viewer, Color highlightColor, String annotationType) {
    final AnnotationPainter painter = new AnnotationPainter(viewer, createAnnotationAccess());
    painter.addHighlightAnnotationType(annotationType);
    painter.setAnnotationTypeColor(annotationType, highlightColor);
    viewer.addPainter(painter);
    viewer.addTextPresentationListener(painter);
  }
 
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.