[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Organize Imports - import all types

Eric Rizzo schrieb:
Organize Imports will add missing imports. If there is an ambiguity about what class to import it will prompt you with a list to choose from.

Okay, so it adds imports like this:

Before:

public Class Foo {
    List l;
}

After:

import java.util.List;
public Class Foo {
    List l;
}


What I am looking for is

Before:

public Class Foo {
    java.util.List l;
}

After:

import java.util.List;
public Class Foo {
    List l;
}

Is there a way to use Organize Imports for that?

Regards,
Stefan