Hi Nitin, the culprit is indeed line 125. However, I would propose another since annotations can be attached to whitespace on the last text region. I suppose the correct fix is to generate separate style ranges for white space.
Anyway, I will open a bug report later on during the day.
thanks
Lionel
From: Nitin Dahyabhai/Raleigh/i...@ibmus
To: "General discussion of project-wide or architectural issues."
<[email protected]>
Date: 08/17/2010 10:15 PM
Subject Re: [wtp-dev][SSE] Annotation underline won't refresh
:
I don't think there's a bug report for this. One detailing your findings
would be appreciated, although it's probably line 125 that's the culprit.
That use of #getTextLength() was intended to avoid issues painting the
background style for trailing whitespace on the last text region of a
document region--the whitespace often ran far longer than a user expected.
The correct fix will probably have to incorporate use of the ITextRegion's
index within its owning ITextRegionCollection's ITextRegionList.
Regards,
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev
<<inline: graycol.gif>>
_______________________________________________ wtp-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/wtp-dev
