Summary: | Hiding Warnings | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nobody - feel free to take it <nobody> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Nobody - feel free to take it
2004-03-12 10:43:33 EST
can you elaborate on this one? warnings can be set per project or per workspace on the compiler prefenence/property page. Which warnings you want to hide? You want that per file? Sorry for not being precise. I will give an example to illustrate: Imagine the option "Local variable is never read" in Compiler > Unused Code being set to "Warning". The statement "int i = 2;" would cause a warning unless i is read somewhere. Now for me, at this moment, it might be okay that i is never read, and I don't want to see this warning right now. But I might want to see other "Local variable is never read" warnings. I would like to be able to hide this special warning, not hiding all the others. Therefor there should be a "Hide" item in the Quick Fix menu. And there should exist a list for the hidden warnings. The user should be able to remove items from the list, of course. This is very difficult to do this for a single wanrning as all the errors and warnings are recomputed on every modification you do. So we would have to find that disabled warning again, and even make it persistent when you close the editor. The only thing I see that's possible is to have special 'comment' in the code. There has been a similar request, moving to jdt.core. Not for 3.0. reopening Can be achieved in 1.5 mode using @SuppressWarnings annotation. |