Plugin In Editor and Squiggles [message #444324] |
Mon, 13 February 2006 13:17  |
Eclipse User |
|
|
|
Hi,
I'm writing a plugin editor, and I would like to highlight portions of text
with red squiggles.
Is there an example somewhere that shows what is involved? Or any other
resources which might help me figure it out? (I'm an experienced programmer
but an eclipse newbie. I tried Google without much success.)
If not, can someone suggest some good starting places to begin digging in
the eclipse code? Also, is this the right forum to ask this, or is there a
better one?
Thanks.
|
|
|
Re: Plugin In Editor and Squiggles [message #444546 is a reply to message #444324] |
Fri, 17 February 2006 06:20  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.eclipse.org
Bill Fenlason wrote:
>Hi,
>
>I'm writing a plugin editor, and I would like to highlight portions of text
>with red squiggles.
>
>
What would those squiggles stand for? It's quite easy to do:
1. register your own marker type (optional) via
org.eclipse.core.resources.markers extension point
2. register your annotation type via
org.eclipse.ui.editors.annotationTypes extension point
3. setup the UI preferences for your annotation type using the
org.eclipse.ui.editors.markerAnnotationSpecification extension point
4. now you can simply add annotations of your type to the editors
annotation model, see IAnnotationModel.addAnnotation(...)
Dani
>Is there an example somewhere that shows what is involved? Or any other
>resources which might help me figure it out? (I'm an experienced programmer
>but an eclipse newbie. I tried Google without much success.)
>
>If not, can someone suggest some good starting places to begin digging in
>the eclipse code? Also, is this the right forum to ask this, or is there a
>better one?
>
>Thanks.
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04466 seconds