Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Formatting assignments
Formatting assignments [message #290312] Tue, 23 August 2005 13:51 Go to next message
Eclipse UserFriend
Originally posted by: Miriam.Drebing.ppi.de

Hi,

we are using the Java Code Formatter in Eclipse 3.0.1 and found several
problems with formatting our sources. Most of them seem to be solved in
Eclipse 3.1, but we still can't figure out how to break assignments when
they get too long.

What I want is something like this:

private int tooLongVariable =
object.getDataFromVeryLongMethodName();

With a linebreak before or after "=".

After formatting all this is on one line:

private int tooLongVariable =
object.getDataFromVeryLongMethodName();

All I found out until now is that this should have worked with older
versions of Eclipse. And some comment that it will work again. Is there a
way to force the linebreak?
Jalopy won't work for us.

Thanks in advance.

Miriam
Re: Formatting assignments [message #290318 is a reply to message #290312] Tue, 23 August 2005 15:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Miriam wrote:

>Hi,
>
>we are using the Java Code Formatter in Eclipse 3.0.1 and found several
>problems with formatting our sources. Most of them seem to be solved in
>Eclipse 3.1, but we still can't figure out how to break assignments when
>they get too long.
>
>What I want is something like this:
>
> private int tooLongVariable =
> object.getDataFromVeryLongMethodName();
>
>With a linebreak before or after "=".
>
>After formatting all this is on one line:
>
> private int tooLongVariable =
>object.getDataFromVeryLongMethodName();
>
>All I found out until now is that this should have worked with older
>versions of Eclipse. And some comment that it will work again. Is there a
>way to force the linebreak?
>
>
AFAIK this is not possible with 3.1. Please log a feature request
against JDT Core.

Dani

>Jalopy won't work for us.
>
>Thanks in advance.
>
>Miriam
>
>
>
>
Re: Formatting assignments [message #290320 is a reply to message #290318] Tue, 23 August 2005 15:40 Go to previous message
Eclipse UserFriend
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

Daniel Megert a écrit :
> AFAIK this is not possible with 3.1. Please log a feature request
> against JDT Core.
Known issue.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=71766

This is on the list of things to fix.
--
Olivier
Previous Topic:The CVS implementation
Next Topic:documentation for Bundle-NativeCodeos
Goto Forum:
  


Current Time: Sat Apr 20 02:22:40 GMT 2024

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

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

Back to the top