Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » code formatting: changing the use of fully qualified names into imports
code formatting: changing the use of fully qualified names into imports [message #105073] Wed, 15 October 2003 05:23 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Memory leaks in Eclipse?
Next Topic:Configuring the location of 'workspace' directory
Goto Forum:
  


Current Time: Tue Jul 22 19:12:53 EDT 2025

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

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

Back to the top