Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] WST validation framework and problem view

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

Back to the top