Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 95512

Summary: Code Template nomore working
Product: [Eclipse Project] JDT Reporter: Luigi Viggiano <lviggiano>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Luigi Viggiano CLA 2005-05-17 04:56:00 EDT
I'm using Eclipse 3.1M7 on winxp.

From "Preferences->Code Templates"

The checkbox "Automatically add comments for new methods and types" is selected.

So I would expect that creating a new class I get it commented. Instead I get,
no comments, except in the case if I select the checkbox "Generate Comments" on
"New Java Class" whizard. Now, I believe that, if I select "Automatically add
comments for methods *and types*" will automatically enable by default the
"Generate Comments" on "New Java Class" whizard.

I - and some of my collegues - had the same problem to find "Generate Comments"
as we previously selected the checkbox "Automatically add comments for new
methods and types" and we was expecting the comments... Instead we did get them.
Only now reporting the bug, I find the checkbox "Generate Comments" on the new
class whizard. 

I believe that this can be made simpler.
Comment 1 Olivier Thomann CLA 2005-05-17 11:30:47 EDT
Move to JDT/UI
Comment 2 Dirk Baeumer CLA 2005-05-17 14:43:21 EDT
Martin, can you please comment.
Comment 3 Martin Aeschlimann CLA 2005-05-18 03:00:27 EDT
Yes the new 'Generate Comments' checkbox on the wizard defines if the new class
contains comments.
The other option is used for all features that don't have UI like quick fix. We
want to improve the description on the preference page.
Comment 4 Luigi Viggiano CLA 2005-05-20 22:59:19 EDT
On new version of eclipse the checkbox "generate comments" on the wizard has
been disabled. This could be the root of the confusion. 
Now, I've enabled that checkbox and I'm getting desired behaviour.