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 49039

Summary: Project selection from 1st step of New wizard ignored in location chooser panel
Product: projects Reporter: pfelenda <pfelenda>
Component: Generic InfrastructureAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: blocker CC: phrebejk, tmulligan
Priority: P2 Keywords: REGRESSION, RELNOTE
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description pfelenda 2004-09-15 07:19:52 UTC
[200409100847 qbuild]
Steps:
-----
prepositions : more project open
- Open new wizard select another project from
combo "Project"
- select e.g. properties file
- click Next step
-> You see seconds step in "Project" field
different name of the project you selected.
It depends which project is selected while opening
the wizard.
Comment 1 Jesse Glick 2004-09-15 17:37:33 UTC
Reproducible for me on Linux, 040914 custom. When did this get broken?
Comment 2 Jan Chalupa 2004-09-15 18:01:13 UTC
Reproducible in Beta 1 on Win NT. Apparently no one noticed so far.

Marking as beta2-candidate. Please evaluate. However, unless the fix
is absolutely simple, I don't think we have to put it in.
Comment 3 Jan Chalupa 2004-09-15 22:43:50 UTC
Thinking about it a little more, this is not a showstopper. And 
we're past the point where only showstoppers can be fixed for beta 
2. Please fix in trunk only.
Comment 4 Jiri Rechtacek 2004-09-16 12:04:43 UTC
Background evaluation: There is a problem with propagation of project
change to NewFileIterator, appears only on NewFileIterator (because
it's generic iterator for templates w/o custom iterator), the Java/Web
derived templates works good. Fix needs to change
NewFileWizard/Iterator, looks as not trivial to be integrate to beta2.

For Release note:
Problem: If a user invokes New file ... wizard from New|File...,
selects some generic file (i.e. Properties, Html, Folder) and then
changes the project (in wizard panel's combo box) this change doesn't
propagate to next panel. If user select one of
Java/Form/Web/JavaBeans/JUnit templates, it will work good.

Workaround: Invoke the wizard from New ... action in popup menu on
selected project.
Comment 5 Jiri Rechtacek 2004-10-13 11:24:25 UTC
Checking in src/org/netbeans/modules/project/ui/NewFileIterator.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewFileIterator.java,v
 <--  NewFileIterator.java
new revision: 1.4; previous revision: 1.3
done
Checking in src/org/netbeans/modules/project/ui/NewFileWizard.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/NewFileWizard.java,v
 <--  NewFileWizard.java
new revision: 1.15; previous revision: 1.14
done