Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 387536 - [type wizards] generate main method stub ignores generate comments setting
Summary: [type wizards] generate main method stub ignores generate comments setting
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.3 M2   Edit
Assignee: Philippe Marschall CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-18 10:39 EDT by Philippe Marschall CLA
Modified: 2012-08-24 03:31 EDT (History)
1 user (show)

See Also:


Attachments
patch that fixes the bug (1.42 KB, patch)
2012-08-18 10:47 EDT, Philippe Marschall CLA
daniel_megert: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Marschall CLA 2012-08-18 10:39:53 EDT
The new class wizard allows to create a main(String[]) method stub. However it ignores the "Do you want to add comments?" setting and always adds a comment.
Comment 1 Philippe Marschall CLA 2012-08-18 10:47:11 EDT
Created attachment 220031 [details]
patch that fixes the bug
Comment 2 Dani Megert CLA 2012-08-22 03:18:27 EDT
The patch looks good. I modified the formatting a bit and updated the copyright notice.

Fixed with http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=93d3986ee8dec7efde964a1cdc38ad6a1c198f7a
Comment 3 Philippe Marschall CLA 2012-08-22 16:31:59 EDT
Awesome, thanks.