Community
Participate
Working Groups
using wtp 3.0M3 20071019040808 sdk source annotations are not painting in source editors spelling, xml, jsp, any other validation errors/warnings are not appearing in the editor. they show up in the overview ruler though. it looks to be a platform base-related issue because it was working fine on eclipse-SDK-I20071002-1342 and then after moving up to eclipse-SDK-I20071010-1200 it didnt work. source annotations are paiting for text & java editors though
probably related to platform bug 201928 in some way
Created attachment 80792 [details] org.eclipse.wst.sse.ui.patch Bug 201928 created a new squiggle drawing strategy to use that depends on a presentation reconciler to paint the squigglies on the editor. Unfortunately, StructuredTextEditors cannot use the presentation reconciler because it conflicts with its highlighter. To work around this problem, I've created a subclass of SourceViewerDecorationSupport and overrode createAnnotationPainter() so that it uses the old squiggly painter (which does not require a presentation reconciler) instead of the new one. Then in StructuredTextEditor, I overrode getSourceViewerDecorationSupport() so that it uses this new subclass.
This fix appears to work for now, but we should look into a better solution in the near future since the old squiggly drawing strategy has been deprecated.
Looks good.
fix released to head and requesting a respin to get fix in to this week's ibuild.
Verified with I20071019201738.
closing
Like said in comment #3, the fix put in works for now, but we're using a deprecated class. I'm going to use bug 108394 to fix this bug better in the longer run.