| Line wrapping of arguments in fields [message #249215] |
Fri, 02 November 2007 13:59 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06696 seconds