Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Line wrapping of arguments in fields
Line wrapping of arguments in fields [message #249215] Fri, 02 November 2007 13:59
Eclipse UserFriend
Hello,
I have a problem with setting up the line wrapping for the arguments of
methods called to initialize fields.
What I get right now is

List list = Arrays.asList(100, 200, 300,
400, 500, 600, 700,
800, 900);

What I want to get is

List list = Arrays.asList(100, 200, 300,
400, 500, 600, 700, 800, 900);

It seems that the reason for that is that I have the option "Align fields in
columns" turned on. But the strange thing is that it doesn't affect the
array initializers the same way. This is how they look:

int[] array = { 100, 200, 300, 400, 500,
600, 700, 800, 900};

All the line wrapping policies in the Function Calls section are set to Wrap
only when necessary (except for "Qualified invocations"), as well as the
Array intitializers one. The preview displays the method calls the way I
want them, but it only contains method calls within a method body, not in
fields.

I was wondering if anyone knows a setting that could fix this, without
having to turn the "fields in columns" option off.

Thanks
Previous Topic:Code Assist varies greatly in response time
Next Topic:Building JDT with different compiler option
Goto Forum:
  


Current Time: Sun Nov 02 21:53:00 EST 2025

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

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

Back to the top