code formatting: changing the use of fully qualified names into imports [message #105073] |
Wed, 15 October 2003 05:23  |
Eclipse User |
|
|
|
Originally posted by: e.comar.no.spam.no.spam.btinternet.com
Hi
does anyone know of an option (or plugin, or any tool) that can be used
to change the style of sources written using fully qualified class names
to a style where single line imports are used instead (leaving the FQN
when there are simple name clashes) ?
I've found that netbeans has such a tool, the import manager tool,
but it can only be invoked on one source at a time. I need something
usable in 'batch' mode.
TIA,
Edo
|
|
|
Re: code formatting: changing the use of fully qualified names into imports [message #105097 is a reply to message #105073] |
Wed, 15 October 2003 06:35  |
Eclipse User |
|
|
|
Edoardo Comar <e.comar.no.spam@no.spam.btinternet.com> wrote:
> does anyone know of an option (or plugin, or any tool) that can be used
> to change the style of sources written using fully qualified class names
> to a style where single line imports are used instead (leaving the FQN
> when there are simple name clashes) ?
>
> I've found that netbeans has such a tool, the import manager tool,
> but it can only be invoked on one source at a time. I need something
> usable in 'batch' mode.
I don't know about leaving single line imports where needed, but you
can certainly do the rest in Eclipse: change the Organize Imports
"Number of Imports Needed for .*" setting to 1, and then right-click on
a source directory and choose Organize Imports.
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
|
|
|
Powered by
FUDForum. Page generated in 0.03577 seconds