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 25561 - [2004-04-15] would like to be able to tell how a new-from-template wizard was launched
Summary: [2004-04-15] would like to be able to tell how a new-from-template wizard was...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 15267
  Show dependency tree
 
Reported: 2002-07-11 19:26 UTC by pete eakle
Modified: 2008-12-22 16:52 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pete eakle 2002-07-11 19:26:00 UTC
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.
Comment 1 Marek Grummich 2002-07-22 11:21:36 UTC
Set target milestone to TBD
Comment 2 Marek Grummich 2002-07-22 11:23:37 UTC
Set target milestone to TBD
Comment 3 _ ttran 2002-07-30 15:57:17 UTC
officially requested by S1S, put into NB 4.0 plan, upped prio to P1
Comment 4 Jaroslav Tulach 2002-09-30 12:58:38 UTC
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.
Comment 5 Jesse Glick 2002-11-22 05:45:47 UTC
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.
Comment 6 Jiri Rechtacek 2004-01-06 09:09:57 UTC
No changes planned to 3.6.
Comment 7 Jiri Rechtacek 2004-04-01 09:13:39 UTC
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
Comment 8 Jesse Glick 2004-04-01 15:35:27 UTC
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.