Bug 51603 - [preferences] Code formatter line wrapping preference inconsistent preview behaviour
Summary: [preferences] Code formatter line wrapping preference inconsistent preview be...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 06:05 EST by Christof Marti CLA
Modified: 2004-02-12 15:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.