Bug 269800

Summary: [format] Reformatting source does not honour print column margin settings
Product: [Eclipse Project] JDT Reporter: Timothy Mowlem <tmowlem>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.5   
Target Milestone: 3.5 M7   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Timothy Mowlem CLA 2009-03-24 06:04:01 EDT
Build ID: 3.5M6

Steps To Reproduce:
1. Set the preference Editors/Text Editors/Print Margin Column to 120
2. Create a source file including javadocs with the javadoc text longer than 120 chars
3. Choose menuitem Source -> Format

I would expect that the reformatting would honour the width that I set in the preference when reformatting. But it clips it to 80 chars regardless.


More information:
Platform is MacOSX 10.5 with the standard SWT build (i.e. not the Cocoa build).
I haven;t tried other builds or platforms but is probably generic.
Comment 1 Frederic Fusier CLA 2009-03-24 07:14:16 EDT
There are specific formatter preferences for the max line width...

Open a formatter preference page: Java > Code Style > Formatter, edit a new profile, go to the 'Line Wrapping' tab and change the 'Maximum line width' value.

Note that there's also a specific value for comments on the 'Comments' tab of the profile. There, you need to change the 'Maximum line width for comments' value...
Comment 2 Olivier Thomann CLA 2009-04-28 08:51:04 EDT
Verified for 3.5M7.