Community
Participate
Working Groups
From time to time I tried to have long method calls format correctly but cannot do it with current Eclipse formatter. Line wrapping doesn't work correctly for long method calls like the one I put here. I used a number of different combinations of options available for method calls, but non of them work for these kind of calls. I'll attach my formatter config file. _______________________ loop1 .addTest(new RepeatedTest( pageLocalhost_commission_Pages_loginPage_jsp_jsessionid_GT3sVrFNkxPjY7hfzr1tpHZLDnZJvzJGYy8QXh18fywQQQZZqhQg__1106627577, 1)); _______________________ I believe a correct formatting should be like this: loop1.addTest(new RepeatedTest( pageLocalhost_commission_Pages_loginPage_jsp_jsessionid_GT3sVrFNkxPjY7hfzr1tpHZLDnZJvzJGYy8QXh18fywQQQZZqhQg__1106627577, 1));
Created attachment 77093 [details] My formatter properties
Which build ID?
No difference, I've had problems from 3.0Mx up to 3.3 equropa concurrent release (Build id: I20070625-1500)
It's still there in 3.4.0 release. Is there any plan to fix this bug?
Any plan to provide a patch?
(In reply to comment #4) > It's still there in 3.4.0 release. Is there any plan to fix this bug? > Not yet
I surely will not have enough time to fix your bug during the 3.5 development process, hence set its priority to P5. Please provide a patch if you definitely need this issue to be fixed in this version and I'll have a look at it... TIA
This is still a problem. Setting "Wrap all elements, every element on a new line" has no effect. The argument is not wrapped, in fact, if you manually wrap it, it is unwrapped by the formatter. Breaking the code formatting!
Eclipse Build used: Indigo Service Release 1, 20110916-0149
This problem no longer occurs after the formatter redesign (or maybe even earlier, but I'm too lazy to check). *** This bug has been marked as a duplicate of bug 303519 ***