Skip to main content



      Home
Home » Newcomers » Newcomers » Annotation / Folding
Annotation / Folding [message #165510] Sun, 13 August 2006 21:14 Go to next message
Eclipse UserFriend
Originally posted by: ejlv048.hotmail.com

Hi, I'm a new at eclipse plugin development and I'm working on a project
which needs to add Annotations to a document open in a editor... I have
looked for several examples and have tried several posible solutions for
the problem with no success... My problem is that the documentation and
samples I have found always relies on you building your own Editor or been
able to call getSourceViewer (which is protected) and my plugin is not
suppoused to offer an editor but use the existing ones...

Does anyone can help me with an example or documentation on how to use
Annotations (and folding) without writting an Editor plugin?

Thanks
Re: Annotation / Folding [message #165527 is a reply to message #165510] Mon, 14 August 2006 04:24 Go to previous message
Eclipse UserFriend
Originally posted by: tom_eicher.ch.ibm.com

Juan wrote:
> Hi, I'm a new at eclipse plugin development and I'm working on a project
> which needs to add Annotations to a document open in a editor... I have
> looked for several examples and have tried several posible solutions for
> the problem with no success... My problem is that the documentation and
> samples I have found always relies on you building your own Editor or
> been able to call getSourceViewer (which is protected) and my plugin is
> not suppoused to offer an editor but use the existing ones...
>
> Does anyone can help me with an example or documentation on how to use
> Annotations (and folding) without writting an Editor plugin?

Juan,

You can add annotations to the IAnnotationModel of the document
displayed in an editor
(editor.getDocumentProvider().getAnnotationModel(editor.getE ditorInput())).

You cannot directly control folding from the outside, but see the
org.eclipse.jdt.ui.javaFoldingStructureProviders extension point on how
to add your own folding provider to the Java editor.

-tom
Previous Topic:SWT download
Next Topic:installing plugin
Goto Forum:
  


Current Time: Fri Jul 18 07:14:06 EDT 2025

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

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

Back to the top