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.

Bug 249891 - Use java package chooser in HTML wizards
Summary: Use java package chooser in HTML wizards
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2015-01-19 07:34 UTC by Jaroslav Tulach
Modified: 2015-02-07 05:40 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Java Target Chooser (4.31 KB, patch)
2015-01-19 07:34 UTC, Jaroslav Tulach
Details | Diff
Drop this module into recent daily build to test the behaviour (49.75 KB, application/java-archive)
2015-01-19 07:35 UTC, Jaroslav Tulach
Details
Polished implementation with no added hard dependencies of the templatesui module (14.59 KB, patch)
2015-02-04 11:20 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2015-01-19 07:34:07 UTC
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.
Comment 1 Jaroslav Tulach 2015-01-19 07:34:27 UTC
Created attachment 151570 [details]
Java Target Chooser
Comment 2 Jaroslav Tulach 2015-01-19 07:35:23 UTC
Created attachment 151571 [details]
Drop this module into recent daily build to test the behaviour
Comment 3 Jaroslav Tulach 2015-01-19 07:39:39 UTC
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).
Comment 4 Geertjan Wielenga 2015-01-20 11:13:48 UTC
Where exactly must the module be dropped?
Comment 5 Geertjan Wielenga 2015-01-20 12:06:43 UTC
Thanks, tried it, works for me. Pretty cool, thanks.
Comment 6 Jaroslav Tulach 2015-02-04 11:20:59 UTC
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.
Comment 7 Jaroslav Tulach 2015-02-05 12:55:49 UTC
ergonomics#edd6f8f1ce96
Comment 8 Quality Engineering 2015-02-07 05:40:21 UTC
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)