[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] AnnotationRulerColumn doesn't display annotations

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