You just need to use a different constructor for AnnotationRulerColumn:
AnnotationRulerColumn(int width, IAnnotationAccess annotationAccess)
You can use IAnnotationAccess for the IAnnotationAccess argument:
protected IVerticalRuler createVerticalRuler(){ IVerticalRuler ruler = super.createVerticalRuler(); CompositeRuler ruler2 = (CompositeRuler) ruler; column1 = new AnnotationRulerColumn(100, new DefaultMarkerAnnotationAccess()); ruler2.addDecorator(0, column1); ruler2.addDecorator(2, createLineNumberRulerColumn()); column1.addAnnotationType("MARKER"); return ruler; }
I assume that you have defined an annotation type named "MARKER" for your marker. If not, be sure to use the annotation type name, NOT the marker type, for column1.addAnnotationType("MARKER"); . You can define your own annotation type and map it to a marker type with an extension point Annotation Types .
Your marker / annotation should appear on your own vertical ruler.
Baris akar
source share