Bug 91238 - Malfunction of Format function
Summary: Malfunction of Format function
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 02:00 EDT by Jerry Mising name CLA
Modified: 2005-05-13 09:19 EDT (History)
2 users (show)

See Also:


Attachments
Before Format (1.58 KB, image/gif)
2005-04-13 02:01 EDT, Jerry Mising name CLA
no flags Details
After Format (1.47 KB, image/gif)
2005-04-13 02:02 EDT, Jerry Mising name CLA
no flags Details
Where is "- Edit... (Comments tab)"? (20.64 KB, image/gif)
2005-04-13 09:51 EDT, Jerry Mising name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Mising name CLA 2005-04-13 02:00:44 EDT
Version: 3.1.0
Build id: I20050401-1645

Ctrl+Shift+F for comments with TODO malfunctioned compared with M4.
See attachments.
Comment 1 Jerry Mising name CLA 2005-04-13 02:01:41 EDT
Created attachment 19847 [details]
Before Format
Comment 2 Jerry Mising name CLA 2005-04-13 02:02:07 EDT
Created attachment 19848 [details]
After Format
Comment 3 Dani Megert CLA 2005-04-13 05:33:46 EDT
JDT Core change the "Clear blank lines in comments"
(FORMATTER_COMMENT_CLEAR_BLANK_LINES) preference from FALSE to TRUE when
adopting the comment formatter from JDT UI.

You can simply uncheck this preference again to get the old behavior.
Comment 4 Jerry Mising name CLA 2005-04-13 06:36:44 EDT
But where can I find the option in Preferences?
Comment 5 Dani Megert CLA 2005-04-13 06:40:35 EDT
Java > Code Style > Formatter - Edit... (Comments tab)
Comment 6 Olivier Thomann CLA 2005-04-13 09:39:51 EDT
I will change the default value.
Comment 7 Jerry Mising name CLA 2005-04-13 09:51:17 EDT
I don't think we are talking same software.
I get "Java > Code Style > Formatter", but I can't find "- Edit... (Comments 
tab)".
See attachement.
Comment 8 Jerry Mising name CLA 2005-04-13 09:51:51 EDT
Created attachment 19861 [details]
Where is "- Edit... (Comments tab)"?
Comment 9 Olivier Thomann CLA 2005-04-13 09:57:23 EDT
Jim, this is a mistake in the default settings of the code formatter
preferences. I will fix it even if this is an API change for the default value.
Ok for you?
Comment 10 Dani Megert CLA 2005-04-13 10:09:08 EDT
Try "Show..."
Comment 11 Olivier Thomann CLA 2005-04-13 10:20:04 EDT
Fixed as this is indeed a regression compare to previous version of 3.1
milestone builds.
Comment 12 Olivier Thomann CLA 2005-04-13 10:20:21 EDT
Regression test added in FormatterRegressionTests.test574.
Comment 13 Maxime Daniel CLA 2005-05-13 06:59:54 EDT
Verified for 3.1 M7 using build I20050512-2035 + jdt.core HEAD.