Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 206174

Summary: [formatter] Line Wrapping Policy: Wrap all elements, only when necessary
Product: [Eclipse Project] JDT Reporter: Jason Faust <j.faust>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, eric_jodet, jerome_lanneluc, mateusz.matela
Version: 3.3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jason Faust CLA 2007-10-12 13:46:14 EDT
Enhancement request to add a new line wrapping policy to the formatter, Wrap all elements, only when necessary.  Defined as when the line length reaches the limit, switch from keeping all elements on the same line to one per line.  In example:

A short line would be formatted as
class.method(argument1, argument2, argument3);

Whereas a long line would be formatted as
class.method(argument1,
		argument2,
		argument3,
		argument4,
		argument5);
Comment 1 Mateusz Matela CLA 2016-01-08 18:06:48 EST
I don't know if it was available when the bug was reported, but this is how "Wrap all elements" without "Force split" works.