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 34281 - Document possibility to add wizard iterator without UI
Summary: Document possibility to add wizard iterator without UI
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@projects
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2003-06-10 19:16 UTC by Jan Pokorsky
Modified: 2004-04-19 16:33 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2003-06-10 19:16:29 UTC
It seems to be useful if compound wizard iterators
provided by org.netbeans.projects.ide.ProjectUtil
would accept iterators without UI
(WizardDescriptor.Iterator.current()==null).

Use Case: java module provides several project
templates that differ in set of panels gathering
data from user to establish a project. Panels are
provided by several modules via xml layer. I would
like to participate in some of these wizards to
check if all necessary parts of the project were
initialized and to initialize them if needed (eg
source root, output folder, ...).

As a suitable solution of this use case seems to
be
TemplateWizard.Iterator.initialize+instantiate+uninitialize
and current() == null.
Comment 1 Vitezslav Stejskal 2003-06-11 12:37:09 UTC
I think this is already possible. The only limitation is that
resulting iterator (the top most one) must hav at leat one panel. In
other words you can have itartor which is compound from empty
iterators only.

Is there anything specific what doesn't work?
Comment 2 Jan Pokorsky 2003-06-11 13:17:17 UTC
As I briefly dipped into CompundWizardIterator.java I have encountered
some places that require WD.Panel. Eg
CompundWizardIterator/initialize/updateCurrentPanelXYZ.

The limitation you have mentioned is acceptable to me.

Well I will try out to use such an iterator and let you know. Anyway
it would be worth to mention this possibility in javadoc.
Comment 3 Jan Pokorsky 2003-06-18 09:31:53 UTC
Verified, it works. Please mention this feature in javadoc of the
compound wizard iterator.
Comment 4 Vitezslav Stejskal 2003-06-18 09:39:30 UTC
OK, will do.
Comment 5 Vitezslav Stejskal 2003-11-26 12:53:17 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.
Comment 6 Vitezslav Stejskal 2003-11-26 14:58:37 UTC
--> VERIFIED