Bug 100266 - [type wizards] "generate comments" not left enabled in new class and new type wizards
Summary: [type wizards] "generate comments" not left enabled in new class and new type...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M2   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 107222 119426 154244 186377 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-15 14:41 EDT by David Hovemeyer CLA
Modified: 2007-08-22 07:11 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Hovemeyer CLA 2005-06-15 14:41:47 EDT
Every time I create a new class by right-clicking on a package and choosing
New->Class, the "Generate comments" checkbox is not selected.  So, I have to
manually select it every time.  It would be nice if it retained the value from
the last use of the dialog.  (I seem to recall that this used to be the default
behavior, but in 3.1RC1 and 3.1RC2 this value does not seem to stick.)
Comment 1 Dirk Baeumer CLA 2005-06-15 16:08:50 EDT
David, 

we deceided to change the behavior to bring the check box more in sync with the
other code style preferences. The check box is now initialized from the code
style preference "Automatically add comments to new types and methods". The
check box on the wizard is only to temporarily override the setting.

With Eclipse 3.1 the code style settings can be configured per project.
Comment 2 David Hovemeyer CLA 2005-06-16 09:32:15 EDT
Thanks a lot!  That solves the problem.
Comment 3 Dani Megert CLA 2007-08-22 04:59:52 EDT
*** Bug 107222 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2007-08-22 05:00:10 EDT
*** Bug 119426 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2007-08-22 05:00:17 EDT
*** Bug 186377 has been marked as a duplicate of this bug. ***
Comment 6 Dani Megert CLA 2007-08-22 05:00:40 EDT
*** Bug 154244 has been marked as a duplicate of this bug. ***
Comment 7 Dani Megert CLA 2007-08-22 05:01:34 EDT
Martin and I discussed how we could improve this but still allow users to temporarily override the current properties:

- keep the checkbox behavior as it is
- move the 'Automatically add comments...' from 'Code Style' to 'Code Templates'
  page so that users see it when they click on the 'properties' link
- improve the text with the 'properties' link so that it is obvious where the
  default can be changed
Comment 8 Martin Aeschlimann CLA 2007-08-22 07:11:38 EDT
fixed as suggested in comment 7
> 20070822