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.
I would like to know whether it was launched form the File- ->New menu, or from the context (popup) menu. Reason needed: A new-from-template wizard may need to display other fields, such as a radio field on its first step (second step if run from File menu), and that occupies some space, so it may not have room for the TargetChooserPanel. And the wizard, when run from File-- >New, will have to then provide the functionality of the TargetChooserPanel some other way, for example it may display a Package field and Browse button which lets the user specify the same information as TargetChooserPanel, but occupies less space on the form. For the case where the wizard is run from the context menu, you will want to hide the Package field and Browse button, similar to what is done with TargetChooserPanel. To do this, you must know how the wizard was launched.
Set target milestone to TBD
officially requested by S1S, put into NB 4.0 plan, upped prio to P1
These issues have been reported to be part of Sun's "should have" contribution to NetBeans 4.0 and be "high level" issues. That is why I am changing them to be FEATUREs with P2. If you think I've done wrong change, please update the issue and internal documents.
Maybe I am missing something, but can't you just check if the targetFolder attribute of the TemplateWizard is set to something (not null)? IMHO there should not need to be any API change here. I am almost positive this exact question was asked on the lists a few months ago but I don't remember the conclusion. Probably a good idea to search the archives for it.
No changes planned to 3.6.
Pete, please could you consider how relevant is this feature in releases built on promoD? There is also a workaround how detect which launcher invoked TemplateWizard: iff a wizard is launched by File|New menu (or Ctlr-N) then public TW.instantiate() is called. If a wizard is launched by popup menu then public TW.instantiate(DataObject template) or public TW.instantiate(DataObject template, DataFolder targetFolder). Please also for verification that you are consent closed as WONTFIX? Thanks
The template wizard system is being partially rewritten for promo-D anyway so there is little reason to keep old issues open. If something analogous arises in the new wizard, it can be filed separately I guess.