Bug 213700

Summary: Eclipse Formatter needs to provide a mechanism to IGNORE line wrapping
Product: [Eclipse Project] JDT Reporter: Patrick McCauley <mccauley>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: benno.baumgartner, daniel_megert, markus.kell.r
Version: 3.3.1   
Target Milestone: 3.5 M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Patrick McCauley CLA 2007-12-21 10:45:54 EST
Build ID: M20070921-1145

Steps To Reproduce:
1. Write some code
2. Enter manual line breaks where logically appropriate (e.g. when writing a multi-conditioned "if" statement, certain criteria may be grouped on different lines.  For instance:

if( (a == b && b == c) &&
    (d == e) &&
    (f == g && h == i)

3. Format the text using the formatter such that the line breaks do not change.

Expected: My line breaks remain intact.

Actual: Eclipse has two settings: no wrapping which pulls the entire condition up to a single line, or wrap to a predefined global line width.  Neither of these options are acceptable.

There needs to be an option to IGNORE line wrapping such that Eclipse neither pulls everything up to one line or wraps to a completely meaningless line width.


More information:
Comment 1 Markus Keller CLA 2008-02-27 08:43:08 EST

*** This bug has been marked as a duplicate of bug 198074 ***
Comment 2 Frederic Fusier CLA 2008-12-03 07:23:08 EST
Reopen to assign...
Comment 3 Frederic Fusier CLA 2008-12-03 07:23:31 EST

*** This bug has been marked as a duplicate of bug 198074 ***
Comment 4 Kent Johnson CLA 2008-12-09 14:03:06 EST
Verified for 3.5M4 using I20081209-0100