Search in sources :

Example 6 with AnnotationPainter

use of org.eclipse.jface.text.source.AnnotationPainter in project abstools by abstools.

the class LocationTypeDrawingStrategy method createAnnotationPainter.

@Override
protected AnnotationPainter createAnnotationPainter() {
    AnnotationPainter painter = super.createAnnotationPainter();
    painter.addDrawingStrategy(LOCATION_TYPE_NEAR_TEXTSTYLE_VALUE, new LocationTypeDrawingStrategy("N"));
    painter.addDrawingStrategy(LOCATION_TYPE_FAR_TEXTSTYLE_VALUE, new LocationTypeDrawingStrategy("F"));
    painter.addDrawingStrategy(LOCATION_TYPE_SOMEWHERE_TEXTSTYLE_VALUE, new LocationTypeDrawingStrategy("S"));
    return painter;
}
Also used : AnnotationPainter(org.eclipse.jface.text.source.AnnotationPainter)

Aggregations

AnnotationPainter (org.eclipse.jface.text.source.AnnotationPainter)6 Annotation (org.eclipse.jface.text.source.Annotation)3 IAnnotationAccess (org.eclipse.jface.text.source.IAnnotationAccess)3 ITextViewerExtension2 (org.eclipse.jface.text.ITextViewerExtension2)2 ColorRegistry (org.eclipse.jface.resource.ColorRegistry)1 ISourceViewerExtension5 (org.eclipse.jface.text.source.ISourceViewerExtension5)1 AbstractInlinedAnnotation (org.eclipse.jface.text.source.inlined.AbstractInlinedAnnotation)1 LineContentAnnotation (org.eclipse.jface.text.source.inlined.LineContentAnnotation)1 LineHeaderAnnotation (org.eclipse.jface.text.source.inlined.LineHeaderAnnotation)1 ImageManager (org.eclipse.mylyn.internal.wikitext.ui.viewer.ImageManager)1 BulletAnnotation (org.eclipse.mylyn.internal.wikitext.ui.viewer.annotation.BulletAnnotation)1 BulletDrawingStrategy (org.eclipse.mylyn.internal.wikitext.ui.viewer.annotation.BulletDrawingStrategy)1 HorizontalRuleAnnotation (org.eclipse.mylyn.internal.wikitext.ui.viewer.annotation.HorizontalRuleAnnotation)1 HorizontalRuleDrawingStrategy (org.eclipse.mylyn.internal.wikitext.ui.viewer.annotation.HorizontalRuleDrawingStrategy)1 ImageAnnotation (org.eclipse.mylyn.internal.wikitext.ui.viewer.annotation.ImageAnnotation)1 ImageDrawingStrategy (org.eclipse.mylyn.internal.wikitext.ui.viewer.annotation.ImageDrawingStrategy)1 DisposeEvent (org.eclipse.swt.events.DisposeEvent)1 DisposeListener (org.eclipse.swt.events.DisposeListener)1