| Summary: | Message Pattern should not be user-configurable | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Alex Ruiz <alruiz> | ||||
| Component: | cdt-codan | Assignee: | Sergey Prigogin <eclipse.sprigogin> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | alruiz, cdtdoug, eclipse.sprigogin | ||||
| Version: | 8.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Alex Ruiz
Created attachment 190709 [details]
Proposed patch
Proposed solution.
I was about to file another bug, where a single preference id is used to store both the "enable" state and the severity level of an IProblem. In this key a single string is stored, which is parsed as follows:
- if the string starts with "-" then the problem is disable
- the rest of the string is the textual representation of the problem ("warning", "error", etc.)
This behavior is broken if bug 339294 is rejected. In another words, if we decide to let users configure the message pattern, we need to fix the storage of preferences because, right now, the message pattern is not being saved in between sessions.
I'll wait for the resolution of this bug to decide whether I file the bug I just described. If we decide to apply the patch I submitted (or a similar solution,) then the fix for preference storage bug can wait till we have more preferences to store.
Patch applied to HEAD > 20110322. *** cdt cvs genie on behalf of sprigogin *** Bug 339294 - Message Pattern should not be user-configurable. Patch by Alex Ruiz. [*] ParametersComposite.java 1.10 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/widgets/ParametersComposite.java?root=Tools_Project&r1=1.9&r2=1.10 [*] ParametersComposite.java 1.11 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/widgets/ParametersComposite.java?root=Tools_Project&r1=1.10&r2=1.11 |