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

Bug 376688

Summary: [type wizards] New class wizard doesn't remember setting for which method stubs to create
Product: [Eclipse Project] JDT Reporter: Philippe Marschall <philippe.marschall>
Component: UIAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.2   
Target Milestone: 3.8 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Philippe Marschall CLA 2012-04-13 03:39:22 EDT
Build Identifier: 3.8.0 I20120314-1800

Which checkboxes are selected in "Which method stubs would you like to create?" is not remembered across invocations of the new class wizard although NewPackageWizardPage tries to save them. The problem seems to be that NewPackageWizardPage#setVisible(false) is never invoked because WizardDialog#finishPressed() sends #hardClose()

Reproducible: Always

Steps to Reproduce:
1. Invoke the New Class wizard
2. Check "public static void main(String[] args)"
3. Uncheck "Constructors from superclass"
4. Uncheck "Inherited abstract methods"
5. Create the class
6. Invoke the New Class wizard again

Expected result:
Which method stubs would you like to create?
 [x] public static void main(String[] args)
 [ ] Constructors from superclass
 [ ] Inherited abstract methods

Actual result:
Which method stubs would you like to create?
 [ ] public static void main(String[] args)
 [ ] Constructors from superclass
 [x] Inherited abstract methods