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.
Normally, the wizard for creating Java files recommends that the user specifies a valid package. However, in some cases it is necessary to *enforce* that a package name is specified. So there should be an option to enforce that package must be specified, and the Next/Finish buttons must be disabled if it is not. This is necessary to fix issue 53841. Attaching a patch.
Created attachment 20985 [details] Patch: addition of one method that makes this possible
I agree with the proposed change.
I think this can be generally useful, I agree with the patch.
Fixed. Checking in apichanges.xml; /cvs/java/project/apichanges.xml,v <-- apichanges.xml new revision: 1.7; previous revision: 1.6 done Checking in src/org/netbeans/spi/java/project/support/ui/templates/JavaTemplates.java; /cvs/java/project/src/org/netbeans/spi/java/project/support/ui/templates/JavaTemplates.java,v <-- JavaTemplates.java new revision: 1.14; previous revision: 1.13 done
Now really marking as fixed.
Sorry, more changes were required. I wasn't working with completely updated sources. Checking in project/Bundle.properties; /cvs/java/project/src/org/netbeans/modules/java/project/Bundle.properties,v <-- Bundle.properties new revision: 1.32; previous revision: 1.31 done Checking in project/JavaTargetChooserPanel.java; /cvs/java/project/src/org/netbeans/modules/java/project/JavaTargetChooserPanel.java,v <-- JavaTargetChooserPanel.java new revision: 1.25; previous revision: 1.24 done
You seem to have omitted the @since tag on the newly added method.
Thanks for catching, done. /cvs/java/project/src/org/netbeans/spi/java/project/support/ui/templates/JavaTemplates.java,v <-- JavaTemplates.java new revision: 1.15; previous revision: 1.14