Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » set AnnotationModel for SourceViewer
set AnnotationModel for SourceViewer [message #294595] Mon, 14 November 2005 18:11
Eclipse UserFriend
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
Previous Topic:stupid eclipse
Next Topic:Image-object source
Goto Forum:
  


Current Time: Thu Apr 25 12:40:58 GMT 2024

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

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

Back to the top