| Summary: | [Markers] Applying multiple quick fixes should allow single application | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Martin Aeschlimann <martinae> |
| Component: | UI | Assignee: | Tod Creasey <Tod_Creasey> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | gunnar |
| Version: | 3.2 | ||
| Target Milestone: | 3.2 M3 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Martin Aeschlimann
I now group these by matching message in the wizard. What does that mean? In which build? build > 20051011. The only matching criterea I have to use currently is the label of the IMarkerResolutions so I am using the label to group The problem is that a quick fix for multiple problems isn't always the same as fixing each problem one by one. E.g. 'fixing' a problem by adding @SuppressWarnings: Assume there's a warning to suppress in every method of a compilation unit. You wouldn't fix this by adding an annotation to each method, but to the whole type. Another example is that a fix for the one marker makes the fixes for all other markers unecessary. That's why the contributor needs somthing like a 'global' view and should be able to provide a fix that 'does it all'. I reprocess before I apply each page. This means that sometimes you will get a message that no changes are available or that the selected change is now obsolete. I didn't want to force implementors of the resolutions to re-implement or to not support grouping of markers (i.e. thos bug) so this made the most sense as a compromise. I was suggesting an extension of the IMarkerResolutionGenerator to allow these global fixes and nobody would be forced to change their existing fixes. So are you suggesting that I remove my current implementation and then only add multiple marker support for those resolutions that support it? There is a lot to be said for this as the current implementation has some strange behaviour but I am afraid that no-one would do it because of time constraints. I wouldn't remove you implementation but let the user to choose between proposed global proposals or to go through proposals step by step. Verified in 20051101 |