Summary: | [formatter] Proper indentation-option for method arguments and qualified invocations still missing | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Michael Moser <mmo> |
Component: | Core | Assignee: | Mateusz Matela <mateusz.matela> |
Status: | VERIFIED WORKSFORME | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | eclipse, frederic_fusier, mateusz.matela, Olivier_Thomann, ric.almeida |
Version: | 3.3 | ||
Target Milestone: | 4.7 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=59891 | ||
Whiteboard: | To be verified for 4.7 M2 |
Description
Michael Moser
2006-11-10 07:08:08 EST
*** This bug has been marked as a duplicate of 59891 *** This issue will be considered separately from bug 59891. Hence reopen... Looks like this task is about "Wrap all elements, except first if not necessary" wrapping policy, which was added a long time ago. Verified for 4.7 M2 using I20160912-2000 build. Just one observation though - the policy gives different results for MethodDeclarations and qualified invocations, so formatting the example below with the line wrapping policy set to "Wrap all elements, except first if not necessary" , the declaration looks as expected but the invocation doesn't have all arguments wrapped. public class Test { Test t = new Test(); public void someMethodDeclarationWithAVeryLongNameThatExceedsLineLength(int first, boolean second, Runnable third) { // } public void foo() { if (true) { this.t.someMethodDeclarationWithAVeryLongNameThatExceedsLineLength( 0, false, () -> { }); } } } |