Create eclipse debugger for StructuredTextEditor. [message #531453] |
Tue, 04 May 2010 23:30  |
Eclipse User |
|
|
|
Hi, all:
I am using the debug api to made a eclipse debugger, and my editor extends StructuredTextEditor.
I use the extension: org.eclipse.wst.sse.ui.breakpoint, to add breakpoint to my editor, that works fine.
But now there are some problem about the debug annotation, that is during the debug time, a green line and a pointer can point to the current source code line. But in my editor, there is no green line, only the pointer can move step by step.
And I try my debugger in other editor, it works fine in texteditor, but in StructuredTextEditor also miss the green line.
Does I miss something?
Thanks to everyone~
|
|
|
|
|
Re: Create eclipse debugger for StructuredTextEditor. [message #534714 is a reply to message #531740] |
Thu, 20 May 2010 01:56  |
Eclipse User |
|
|
|
Well, I found the problem when I debug StyledText#replaceStyleRanges. The annotation painter need use this method to draw the debug green line.
But as that method said: Should not be called if a LineStyleListener has been set since the listener maintains the styles.
Unluckily, there is a line style listener(for syntax highlighting) in our editor, and that listener didn't work with annotation highlight.
I think it will be better if there is a AbstractLineStyleListener(or something else) works with the annotation highlight.
|
|
|
Powered by
FUDForum. Page generated in 0.07420 seconds