Bug 269800 - [format] Reformatting source does not honour print column margin settings
Summary: [format] Reformatting source does not honour print column margin settings
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-24 06:04 EDT by Timothy Mowlem CLA
Modified: 2009-04-28 08:51 EDT (History)
1 user (show)

See Also:


Attachments

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