Bug 51603

Summary: [preferences] Code formatter line wrapping preference inconsistent preview behaviour
Product: [Eclipse Project] JDT Reporter: Christof Marti <christof_marti>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Christof Marti CLA 2004-02-11 06:05:40 EST
Test case in Line Wrapping tab:
- choose 'Qualified invocations'
- check 'force split'
-> preview is wrapped
- choose 'Do not wrap'
-> preview is not wrapped
- choose 'Wrap only when necessary' (again)
-> preview stays not wrapped, which is inconsistent
Comment 1 Martin Aeschlimann CLA 2004-02-11 15:08:51 EST
Moving to Olivier:
as discussed: 'do not wrap' should precedent 'force split' do you can change
DefaultCodeFormatterConstants line 2561 to not clear the other bits.
Comment 2 Olivier Thomann CLA 2004-02-11 16:45:26 EST
Indentation and force settings need to be preserved when the wrapping style is
set to WRAP_NO_SPLIT.
Fix is ready. Existing settings will be lost.
Comment 3 Olivier Thomann CLA 2004-02-12 11:44:02 EST
Fixed and released in HEAD.
Regression test added.
Comment 4 Olivier Thomann CLA 2004-02-12 15:32:56 EST
Verified in 200402121200.