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 60007 - Project name and folder settings don't refresh
Summary: Project name and folder settings don't refresh
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 10:58 UTC by Michal Mocnak
Modified: 2006-12-11 09:31 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 Michal Mocnak 2005-06-15 10:58:29 UTC
Found in NB4.1 build 200505031930

1. start nb
2. choose new project > Enterprise node -> EJB Module with existing sources
3. set location folder => other fields update
4. now reset location folder

=> after the changing location folder the other fields (Project Name, Project
Folder) don't refresh. It's bad if user for first choose bad project location
and then he resets the project location to right value. The finish button will
be enabled but Project Name and Project Fodler will not be refreshed.
Comment 1 Andrei Badea 2005-06-17 12:17:31 UTC
Needs to be fixed in the web project as well.
Comment 2 Petr Blaha 2006-03-13 13:48:13 UTC
TM 5.0 -> TBD
Comment 3 Milan Kubec 2006-06-15 11:12:28 UTC
Location field is to specify folder with project sources not project folder
itself. It seems a bit strange that project folder location is derived from
source folder location (both might be different), but OK. Project Name should be
offered the same way as for regular project and it should not change if user
selects different source folder location.

I suggest that after user selects source folder location it will be used to
create project folder location by removing last folder in the path
(.../prj/EJBPrj1/src as source folder location would become .../prj/EJBPrj1 as
project folder location). Project name wouldn't change by changing source folder
location.

The similar way is used in Web prj with ex. src with some difference: project
folder location is changed with each change of the source folder only if it
wasn't changed by user, which is logical. The project folder location is the
same as source folder location which is not good though.

Jano, please comment. Thanks.
Comment 4 jrojcek 2006-06-19 09:38:48 UTC
The Location field specifies the parent folder containing all source and library folders in case of Web and 
EJB projects. Thus we expect the user to select ".../prj/EJBPrj1" in the Location field, which updates the 
project name to "EJBPrj1" and project folder to ".../prj/EJBPrj1". If the user changes the location field, it 
should update the project name and folder fields but only if those fields were not manually modified by 
the user yet.
Comment 5 Milan Kubec 2006-06-19 11:39:11 UTC
OK, the semantics is a bit different from J2SE Project, though.
Comment 6 Milan Kubec 2006-07-11 14:44:56 UTC
Done. It complies with UI suggestions from jrojcek in issue #61204.

Checking in ImportLocationVisual.java;
/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/wizards/ImportLocationVisual.java,v
 <--  ImportLocationVisual.java
new revision: 1.25.36.6.2.11; previous revision: 1.25.36.6.2.10
done

Diff:
http://www.netbeans.org/source/browse/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/wizards/ImportLocationVisual.java?r1=1.25.36.6.2.10&r2=1.25.36.6.2.11
Comment 7 Michal Mocnak 2006-12-11 09:31:46 UTC
Verified