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 48208 - in new project dialog adjust name when changing prj folder
Summary: in new project dialog adjust name when changing prj folder
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: jrojcek
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2004-08-31 04:33 UTC by Pavel Buzek
Modified: 2005-02-21 09:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Buzek 2004-08-31 04:33:59 UTC
The IDE provides a default project name (something
like WebApplication2). When you choose a different
folder it will not update the name so Finish is
diabled. This is annoying when testing :-)
Comment 1 Pavel Fiala 2004-09-30 15:50:12 UTC
Pavel, 
now I cannot reproduce mentioned annoying behavior. Perhaps the issue
had been fixed as part of another fix. Please verify it.
Comment 2 zikmund 2004-10-06 14:46:54 UTC
It is still reproducible:
1) Have a directory with WebApp project of default name WebApplication1
2) Run IDE with clean userdir
3) Invoke New WebApp wizard (default name WebApplication1 is prefilled)
4) Browse directory from step 1
5) ERROR:
There's error "Project Folder already exists and is not empty".
I'd expect automatic number change in the default project name (to
WebApplication2 in this case).

At least I think that's what Pavel tried to point out. I agree that
it's annoying when testing.
Comment 3 Pavel Fiala 2004-10-08 13:56:23 UTC
Fixed in Web application wizard. 

If project location is changed and project name is generated
(unmodified by user), a generated project folder location is examined.
If there is a conflict that prevents to continue, a new project names
are generated in sequence until the name does not cause a conflict.
Sequence number of the generated project name is stored only if the
name is used for a newly created project.

J2SE project wizard should be changed accordingly.



Checking in
project/src/org/netbeans/modules/web/project/ui/wizards/ImportLocationVisual.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/wizards/ImportLocationVisual.java,v
 <--  ImportLocationVisual.java
new revision: 1.26; previous revision: 1.25
done
Checking in
project/src/org/netbeans/modules/web/project/ui/wizards/ImportWebProjectWizardIterator.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/wizards/ImportWebProjectWizardIterator.java,v
 <--  ImportWebProjectWizardIterator.java
new revision: 1.37; previous revision: 1.36
done
Checking in
project/src/org/netbeans/modules/web/project/ui/wizards/NewWebProjectWizardIterator.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/wizards/NewWebProjectWizardIterator.java,v
 <--  NewWebProjectWizardIterator.java
new revision: 1.12; previous revision: 1.11
done
Checking in
project/src/org/netbeans/modules/web/project/ui/wizards/PanelProjectLocationVisual.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/wizards/PanelProjectLocationVisual.java,v
 <--  PanelProjectLocationVisual.java
new revision: 1.20; previous revision: 1.19
done
Comment 4 Tomas Zezula 2004-10-11 15:31:45 UTC
I don't want to do something like this.
There are several problems. The project name is changed when the
project folder is changed even the project name is above the project
folder.
There is no way how to reasonably fill the project location text field
when the project folder is typed by user.
Comment 5 jrojcek 2005-02-21 09:55:30 UTC
We won't fix this one in J2SE project. It is really questionable how it should work.