Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Code Formatter breaks lines in imports
Code Formatter breaks lines in imports [message #48390] Wed, 04 June 2003 05:22 Go to next message
Eclipse UserFriend
Originally posted by: mbj.systematic.dk

Is there a way to telle Eclipse (using 2.1) to no format the import
statements, since it looks quite silly having:

import mypackage1.
mypackage2.
mypackage3.
myclass

Of course I could just tell Eclipse to use longer lines, but I would like to
use 80 character lines for the rest of the code

/Mikkel
Re: Code Formatter breaks lines in imports [message #48793 is a reply to message #48390] Wed, 04 June 2003 10:44 Go to previous messageGo to next message
Eclipse UserFriend
....... and a option to convert imports like

import mypackage1.
mypackage2.
mypackage3.
myclass

automatically back to a single-line import on format ;-)

Take Care

Michael

"Mikkel Bjerg" <mbj@systematic.dk> schrieb im Newsbeitrag
news:bbkds7$gl7$1@rogue.oti.com...
> Is there a way to telle Eclipse (using 2.1) to no format the import
> statements, since it looks quite silly having:
>
> import mypackage1.
> mypackage2.
> mypackage3.
> myclass
>
> Of course I could just tell Eclipse to use longer lines, but I would like
to
> use 80 character lines for the rest of the code
>
> /Mikkel
>
>
Re: Code Formatter breaks lines in imports [message #54671 is a reply to message #48793] Wed, 11 June 2003 12:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tmacc.comcast.net

You may want to use the Jalopy plug-in for Eclipse. It is a much more
powerful code formatting tool. You can also use the "Organize Imports"
command that is standard with Eclipse.

http://jalopy.sourceforge.net/index.html

Hope this helps,
Tom


"Michael T
Re: Code Formatter breaks lines in imports [message #55166 is a reply to message #54671] Thu, 12 June 2003 02:55 Go to previous message
Eclipse UserFriend
Nice tool but the configuration dialog has a Swing interface (the eclipse
plugin too)...
One bad thing is that this looks ugly placed over the rest of the components
Second bad thing is that it creates a little memory overhead (loads the big
fat swing :-) on my 256 MB-only machine :((

Vasil

"Tom Maccariella" <tmacc@comcast.net> wrote in message
news:bc7kac$2jl$1@rogue.oti.com...
> You may want to use the Jalopy plug-in for Eclipse. It is a much more
> powerful code formatting tool. You can also use the "Organize Imports"
> command that is standard with Eclipse.
>
> http://jalopy.sourceforge.net/index.html
>
> Hope this helps,
> Tom
>
>
> "Michael T
Previous Topic:Ant ignoring classpath
Next Topic:package name does not match directory name problem during importing
Goto Forum:
  


Current Time: Tue Jul 15 18:22:26 EDT 2025

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

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

Back to the top