Skip to main content



      Home
Home » Newcomers » Newcomers » How to use overview ruler in a view but not editor
How to use overview ruler in a view but not editor [message #16815] Tue, 25 January 2005 16:15 Go to next message
Eclipse UserFriend
I would like to implement a view that can display error/warning/plain
messages that other applications send to it. If there is an error/warning
messages in the text an annotation will show up in the overview ruler.
Clicking on the annotation will bring you to the line where the
error/warning message is. For this purpose I created a viewer that extends
SourceViewer in this view. But I don't know how to connect the annotation,
StyledText widget, overview ruler ,AnnotationPainter and SourceViewer
together to make the annotation show up in the overview ruler. I tried to
reference how the Java Editor is implemented but the source code is too
big and it is related to an editor but not a view. I would like to know if
this cannot be done in a view instead of an editor ?

Thanks,

Muyan
Re: How to use overview ruler in a view but not editor [message #17192 is a reply to message #16815] Wed, 26 January 2005 09:53 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Muyan wrote:

> I would like to implement a view that can display error/warning/plain
> messages that other applications send to it. If there is an
> error/warning messages in the text an annotation will show up in the
> overview ruler. Clicking on the annotation will bring you to the line
> where the error/warning message is. For this purpose I created a
> viewer that extends SourceViewer in this view. But I don't know how to
> connect the annotation, StyledText widget, overview ruler
> ,AnnotationPainter and SourceViewer together to make the annotation
> show up in the overview ruler.

Take a look at SourceViewerDecorationSupport

Dani

> I tried to reference how the Java Editor is implemented but the source
> code is too big and it is related to an editor but not a view. I would
> like to know if this cannot be done in a view instead of an editor ?
>
> Thanks,
>
> Muyan
>
Previous Topic:Java not recognized by Eclipse
Next Topic:Problems starting java example
Goto Forum:
  


Current Time: Sat Jun 07 20:45:17 EDT 2025

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

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

Back to the top