Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 224339

Summary: tie quick fix and validation in a little more
Product: [WebTools] WTP Source Editing Reporter: Amy Wu <for.work.things>
Component: wst.sseAssignee: Amy Wu <for.work.things>
Status: CLOSED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: valentinbaciu
Version: 3.0Keywords: plan
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Amy Wu CLA 2008-03-27 07:35:07 EDT
bug 170988 was fixed so that more information could be passed in for quick fixing.  the fix was to allow validator implementors to stick their quick fix processor in an imessage/annotation attribute.

while that solution is still valid, we should do a better job of making information needed for quick fix more available and not so tied into quick fix processor.  this would allow marker quick fixes to work alongside with annotation quick fixes.
Comment 1 Amy Wu CLA 2008-03-27 07:44:16 EDT
Part of this solution is making sure the validator can set quick fix information in annotation/marker attributes and these attributes will be passed from one object to another.

I've created provisional class StructuredTextInvocationContext.  This class contains a getAttribute(String) method that quick fix processors are able to call and get any special information set by the validator.  (and in theory, markers would get the same set of information for marker resolution)

I've also created a provisional extension point, org.eclipse.wst.sse.ui.quickFixProcessor.  This extension works very much like the marker resolution extension point.  Adopters would be able to contribute their quick fix processor and associate it with a "problemType" or any other name/value combo found, again in the IMessage attributes map.
Comment 2 Amy Wu CLA 2008-03-27 07:44:42 EDT
released for m6 (hopefully)
Comment 3 Amy Wu CLA 2008-04-14 13:49:11 EDT
verified in wtp 3.0m6