AnnotationRulerColumn doesn't display annotations [message #333483] |
Sun, 14 December 2008 04:52 |
Bret Schuhmacher![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=bret%40lombardi.com) Messages: 26 Registered: July 2009 |
Junior Member |
|
|
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.04260 seconds