Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » Eclipse 3.3 - How to configure multiple filters in the problem pane?
Eclipse 3.3 - How to configure multiple filters in the problem pane? [message #50018] Fri, 26 October 2007 08:31 Go to next message
Eclipse UserFriend
Originally posted by: adam.lipscombe.qucs.co.uk

Folks


I have lots of compile warnings, many of them about two unused static variables that are present in
all my classes.

They are:
private static final String MODULE_ID = "$Header: $";
private static final String COPYRIGHT = "Copyright blah blah";



I want to filter out any warnings to do with both of these. I can easily setup a filter to remove
messages to do with one, but when I add another filter and tick it, I see error messages for both.

I want to filter out warnings about MODULE_ID and COPYRIGHT


Is this possible? If so how?


Thanks - Adam
Re: Eclipse 3.3 - How to configure multiple filters in the problem pane? [message #50049 is a reply to message #50018] Fri, 26 October 2007 12:11 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Adam,

This newsgroup isn't for technical questions. Please use either
news://news.eclipse.org/eclipse.platform or
news://news.eclipse.org/eclipse.newcomer for questions like this.

You could change
"Window->Preference->Java->Compiler->Errors/Warrnings->Unecessary
code->Unused local or private member" to ignore all such problems, or if
you are using Java 5.0 or greater, you could add
@SuppressWarnings("unused") the declaration.


Adam Lispcombe wrote:
> Folks
>
>
> I have lots of compile warnings, many of them about two unused static
> variables that are present in all my classes.
>
> They are:
> private static final String MODULE_ID = "$Header: $";
> private static final String COPYRIGHT = "Copyright blah blah";
>
>
>
> I want to filter out any warnings to do with both of these. I can
> easily setup a filter to remove messages to do with one, but when I
> add another filter and tick it, I see error messages for both.
>
> I want to filter out warnings about MODULE_ID and COPYRIGHT
>
>
> Is this possible? If so how?
>
>
> Thanks - Adam
Previous Topic:TPTP Webinar
Next Topic:Eclipse Group Started on LinkedIn....
Goto Forum:
  


Current Time: Sat Oct 19 10:55:57 GMT 2024

Powered by FUDForum. Page generated in 0.03896 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top