AnnotationRulerColumn doesn't display annotations [message #333483] |
Sat, 13 December 2008 23:52 |
Eclipse User |
|
|
|
Hi all - I have a question about CompositeRulers and adding an
AnnotationRulerColumn. I have a subclass of SourceViewer...
I had my code working with just a simple VerticalRuler showing annotations:
super(parent, (verticalRuler ? new VerticalRuler(12,
fAnnotationAccess)
: null), styles);
Then I decided to add line numbers, so I made it a CompositeRuler:
super(parent, (verticalRuler ? new CompositeRuler() : null), styles);
CompositeRuler ruler = (CompositeRuler) getVerticalRuler();
LineNumberRulerColumn lnrc = new LineNumberRulerColumn();
AnnotationRulerColumn anrc = new AnnotationRulerColumn(annotationModel,
12, fAnnotationAccess);
ruler.setModel(annotationModel);
ruler.addDecorator(0, lnrc);
ruler.addDecorator(1, anrc);
All I get are the line numbers now - my annotations are gone. My
annotationModel isn't null - I know that can keep the annotations from
showing. Anrc isn't null, either. Can anyone offer any insight into this?
Thanks for your time!
Bret
|
|
|
Powered by
FUDForum. Page generated in 0.04704 seconds