Re: [tasklist] RFE: remove duplicate suggestions from the suggestion view...

Tor Norbye <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <1049136309.5910.76.camel@proto>
On Mon, 2003-03-31 at 07:30, Trond Norbye wrote:
> I think it would be nice if we removed multiple suggestions from the
> suggestion view...
> 
> If you for instance use an "unknown" class you might get multiple:
> "import class java.util.Calendar" suggestions.
> 
> One would be enough for me ;)

This is javac.

If you have a statement like this:

    Calendar c = null;

you only get a single unknown error.

But if you have a statement like this:

    Calendar c = new Calendar();

you get TWO errors complaining that Calendar is an unknown symbol.
For each error, the suggestions view will attempt to find a fix.

We -could- suppress successive identical errors - is that what your
enhancement request is all about?

But of course if I have a statement like this:

    Calendar c = null; Date d = null; c = new Calendar();

I will again get two errors on calendar - but a Date error in
the middle. In this case, removing the duplicates seem like a bad
idea since they're really referring to different statements.
Given javac error output, I can't tell this case apart from the 
earlier example.

-- Tor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.