Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to add the red wave line?
How to add the red wave line? [message #334878] Thu, 05 March 2009 21:57 Go to next message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
Hey All,

We build a XML editor. If a line of text is not valid, a problem marker
(red cross) can be added to the vertical ruler.

However, the red wave line is missing. Originally it underlines the XML
content that is invalid.

How can I bring them back? What class or method is responsible for
creating such wave lines? Must quick-fix work with it?

Any input or hints will be appreciated. Thank you so much!

Frank
Re: How to add the red wave line? [message #334890 is a reply to message #334878] Sat, 07 March 2009 01:16 Go to previous messageGo to next message
Sharon F is currently offline Sharon FFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Frank,

Did you missed the attributes IMarker.CHAR_START and IMarker.CHAR_END when
you create the problem marker?

Sharon
------
http://www.eclaxy.com
Re: How to add the red wave line? [message #334913 is a reply to message #334890] Mon, 09 March 2009 23:57 Go to previous messageGo to next message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
Hi Sharon,

Thank you so much for the hints. I checked your suggestions through
debugging. But the validation marker is created by child class of WTP XML
editor. It uses a different way to mark out the offset and length.

I figured out the line is called: Squiggle line. The related settings are:

SQUIGGLE_SELECTION_STRATEGY_ATTRIBUTE
SQUIGGLE_NAME_OR_VALUE_ATTRIBUTE

from class
org.eclipse.wst.xml.core.internal.validation.core.AbstractNe stedValidator

However, I haven't understood how it works to set up squiggle information.
It seems more like a configuration problem in my code. Any clue about the
issue?

Thanks a lot in advance!

Frank Du



Sharon F wrote:

> Hi Frank,

> Did you missed the attributes IMarker.CHAR_START and IMarker.CHAR_END when
> you create the problem marker?

> Sharon
> ------
> http://www.eclaxy.com
Re: How to add the red wave line? [message #334915 is a reply to message #334913] Tue, 10 March 2009 06:55 Go to previous messageGo to next message
Sharon F is currently offline Sharon FFriend
Messages: 8
Registered: July 2009
Junior Member
Hi Frank,

Sorry but I know nothing about WTP. Maybe someone else here could help you.

Good luck!


Sharon
------
http://www.eclaxy.com
Re: How to add the red wave line? [message #334924 is a reply to message #334915] Tue, 10 March 2009 14:20 Go to previous message
Frank Du is currently offline Frank DuFriend
Messages: 91
Registered: July 2009
Member
Hey Sharon,

Thank you so much for the reply! You do remind of another newsgroup to
better address this issue. I have post the question to wtp.webtools. Thank
you so much!

Best Regards,
Frank
Previous Topic:auto code formatting
Next Topic:Common Navigator ClassCastException
Goto Forum:
  


Current Time: Fri Apr 19 22:55:44 GMT 2024

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

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

Back to the top