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,
You would need a subclass of org.eclipse.wst.validation.AbstractValidator plugged into the org.eclipse.wst.validation.validatorV2 extension point.  Take note that the message reporting mechanism is a little different as the V2 framework was created after the source validation framework.

Regards,
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational



From: Lionel Villard/Watson/IBM@IBMUS
To: "General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>
Date: 11/05/2010 03:16 PM
Subject: Re: [wtp-dev] WST validation framework and problem view
Sent by: wtp-dev-bounces@xxxxxxxxxxx





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


Inactive hide details for Nitin Dahyabhai---11/05/2010 02:56:27 PM---Lionel, Maybe there's some confusion about what gets shownNitin Dahyabhai---11/05/2010 02:56:27 PM---Lionel, Maybe there's some confusion about what gets shown where.

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




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@xxxxxxxxxxx

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



Back to the top