How to use overview ruler in a view but not editor [message #16815] |
Tue, 25 January 2005 16:15  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.09024 seconds