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);
}