Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » AnnotationRulerColumn doesn't display annotations
AnnotationRulerColumn doesn't display annotations [message #333483] Sun, 14 December 2008 04:52
Bret Schuhmacher is currently offline Bret SchuhmacherFriend
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
Previous Topic:Configuration of XSD/WSDL errors in Eclipse
Next Topic:CNF: extend existing Viewer
Goto Forum:
  


Current Time: Wed Jul 17 19:47:59 GMT 2024

Powered by FUDForum. Page generated in 0.02280 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top