This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Template wizard invokes node action twice | ||
---|---|---|---|
Product: | platform | Reporter: | Alexander Simon <alexvsimon> |
Component: | Data Systems | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 235317 | ||
Attachments: | Stack trace |
typo: rteproduse->reproduce, cation->action Fixing this would be quite difficult, as both methods should invoke the default action: TemplateWizard is part of the API, so removing invocation of the default action would be backward incompatible. Custom TemplateWizard.Iterator instances are not required to invoke the default action, so if the invocation is removed from ProjectUtilities, it would be again backward incompatible change. This behavior is in NetBeans for 9 years, so I'm quite afraid to change it. Could you workaround the issue on your side? Thank you. (In reply to Jaroslav Havlin from comment #2) > Could you workaround the issue on your side? I did. (In reply to Alexander Simon from comment #3) > > Could you workaround the issue on your side? > I did. Thank you very much. I'm decreasing the priority, as the bug is quite harmless in most cases, and fixing it is complicated. |
Created attachment 139561 [details] Stack trace Steps to rteproduse: - create new file->Other->Empty file - Next - Type file name "test.txt" - Finish Default node cation is called twice - TemplateWizard.instantiate() line 924 - ProjectUtilities.openAndSelectNewObject() line 288