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.
There has been a request to use java package chooser rather than classical directory chooser when creating wizards using HTML (see http://wiki.netbeans.org/HtmlUIForTemplates). One option is to write the whole UI in HTML and knockout, but that is too much work for the user. Better to allow usage of existing package target chooser.
Created attachment 151570 [details] Java Target Chooser
Created attachment 151571 [details] Drop this module into recent daily build to test the behaviour
When using the Wizard Wizard in recent build, it generates following reference to targetChooser in its HTML UI description file: <section data-bind="step: 'targetChooser'"> <!-- placeholder section for providing default location chooser --> </section> just makes sure the above patch is applied (or the attached module JAR is used) and you can replace the above with: <section data-bind="step: 'targetChooser:java'"> <!-- placeholder section for providing default location chooser --> </section> then the chooser will be replaced by new one. Please give it a try and if it works OK, I can provide a final patch (which will not provide hard dependency on the Java project APIs as we don't want everyone using HTML wizards to also include Java suppport).
Where exactly must the module be dropped?
Thanks, tried it, works for me. Pretty cool, thanks.
Created attachment 151813 [details] Polished implementation with no added hard dependencies of the templatesui module Unless there are objections, I plan to integrate this change tomorrow.
ergonomics#edd6f8f1ce96
Integrated into 'main-silver', will be available in build *201502070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/edd6f8f1ce96 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #249891: Recognizing 'targetChooser:java' and displaying package list then instead of classical target chooser (if available)