| Summary: | Errors flagged by error annotations not reflected in the Problems, Explorer, and/or Navigator views. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Rakesh <rakes123> | ||||||||
| Component: | jst.jsp | Assignee: | Rakesh <rakes123> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | ccc, nsand.dev | ||||||||
| Version: | 3.0.5 | Flags: | thatnitind:
review+
|
||||||||
| Target Milestone: | 3.0.5 P | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Rakesh
Created attachment 172403 [details] Patch Patch for Bugzilla corresponding to WI 49545 in Jazz(7552 stream) Reason for this defect is: Markers attached to a resource, needed by problems view is currently created in Validator V2 framework. When we save it V2 framework triggers build and create markers for errors.There is no 1-1 correspondence between error annotations and errors in problem view,since not all validators use V2 framework.I have moved MarkupValidator and JSPMarkupValidator from jst.jsp.ui to jst.jsp.core .Now it uses Validation V2 framework .I took some help from patch of Bug 304620. Hi, Rakesh. Thanks for the patch. Unfortunately, I think it's very large and somewhat risky to put in. Is there any way for us to take advantage of the already existing source validators for JSP (JSPContentSourceValidator) to do the work that was done by the JSPMarkupSourceValidator? I know that in WTP 3.2, we've moved away from the JSPMarkupSourceValidator, so maybe we can do away with it in 305p as well. Created attachment 172712 [details]
New patch
Added one more validator based on V2 framework , which uses JspMarkupValidator to validate.
Created attachment 172826 [details]
Adapter patch
This is a different approach at patching this. While Rakesh's approach is definitely more succinct than the attached patch. I put this together because:
1) Adding another Validation Framework validator requires a new string, which we cannot do in this stream
2) We can keep build validators in the core plug-in
3) Content validation stays linked to the JSP Content validator
Committed to R3_0_5_patches Note that the first change to org.eclipse.jst.jsp.ui's plugin.xml was already done in bug 316431. |