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