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 255424

Summary: "Add Existing Item..." default folder reference is wrong after rename or copy of project
Product: cnd Reporter: MackSix
Component: ProjectAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal CC: MackSix
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description MackSix 2015-09-19 19:25:36 UTC
1. Open a C++ project and compile and run it.
2. Invoke Project context menu and invoke "Rename...". 
3. Rename the project and check "Also Rename Project Folder".
4. Invoke "Add Existing Item..." from one of the logical folder.

Results: The default folder name shown in the Open File dialog is the old project folder name that no longer exists. 

Workaround: Navigate to the real renamed folder or restart NetBeans.

1. Restart NetBeans.
2. Copy the C++ Project.
3. Invoke "Add Existing Item..." from one of the logical folder.

Results: The old folder name shows as default in the Open File dialog and could cause the user to add items from the wrong folder.

Workaround: Same as above. 

Product Version: NetBeans IDE Dev (Build 201509180002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)