Hi Nitin,

thanks for this clear answer!

I'm using the SSE source validation extension point, which creates
temporary annotations. How can I create Marker-based annotations?

Thanks
Lionel



From:   Nitin Dahyabhai/Raleigh/i...@ibmus
To:     "General discussion of project-wide or architectural issues."
            <wtp-dev@eclipse.org>
Date:   11/05/2010 02:56 PM
Subject:        Re: [wtp-dev] WST validation framework and problem view
Sent by:        wtp-dev-boun...@eclipse.org



Lionel,
Maybe there's some confusion about what gets shown where.
      Validators run by the Validation Framework create Markers,
      implementors of org.eclipse.core.resources.IMarker.
      Validators run by SSE Source Validation only create Annotations,
      subclasses of org.eclipse.jface.text.source.Annotation
      The Problems/Markers views only show Markers.
      Text editors only ever show text Annotations, but how they're shown
      is up to the editor and the Annotations preference page, whether that
      is painted in the source itself (red squigglies/"the sea of red"),
      the overview ruler (right-side), or with an image in the vertical
      ruler (left-side).
      Markers are (more or less) automatically represented by text
      Annotations in text editors.
      The StructuredTextEditor only paints images in the vertical ruler for
      Marker-based Annotations.  We've had concrete feedback in the past
      about showing images for both temporary problems and Markers being
      confusing.

So, the question is: which extension point are you using?

Regards,
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational_______________________________________________
wtp-dev mailing list
wtp-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/wtp-dev

<<inline: graycol.gif>>

_______________________________________________
wtp-dev mailing list
wtp-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to