set AnnotationModel for SourceViewer [message #294595] |
Mon, 14 November 2005 18:11 |
Eclipse User |
|
|
|
Originally posted by: shanemccullogh.hispeed.com
Hi,
Is there any way to programmatically set an AnnotationModel for a
SourceViewer?
In some cases for myEditor, the annotationModel is automatically
instantiated and in some cases not. I don't understand what determines if
an annotation model is going to be null or a ResourceMarkerAnnotationModel
(which it is when it's not null)?
Has it got anything to do with the EditorInput? In myEditor, i tried:
if( ( getSourceViewer().getAnnotationModel() ) == null )
{
getSourceViewer().setDocument( ( getSourceViewer().getDocument() ),
new AnnotationModel() );
}
But that produced lots of errors!
Any thoughts?
Thanks,
Shane
|
|
|
Powered by
FUDForum. Page generated in 0.03427 seconds