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 105014 - Can not create the logical folder with name "f1"
Summary: Can not create the logical folder with name "f1"
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 12:08 UTC by dnikitin
Modified: 2008-01-29 11:34 UTC (History)
0 users

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 dnikitin 2007-05-29 12:08:26 UTC
Project Version: NetBeans IDE 5.5.1 (Build 200704122300, C/C++ Pack 20070529)
Operating System: SunOS version 5.10 running on x86
Java: 1.5.0_09
Java Home: /net/guitest3/quantum/ifdef/jvm/intel-S2/j2sdk1.5.0_09/jre
Install Dir: /export/home/tester/netbeans-5.5.1dev/
Hostname: sqao15
-----------------------------------------------------

Can not create the logical folder with name "f1".

If I try rename "New Folder 1" to "f1" then I get warning message "Cannot rename
f1 to f1. It already exists".
Comment 1 Thomas Preisler 2008-01-28 05:05:22 UTC
Fixed. Was using getName instaed of getDisplayName for comparising.

diff -r 0cd2fe7830b4 -r a6b039fe8ef3 cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/ui/MakeLogicalViewProvider.java
--- a/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/ui/MakeLogicalViewProvider.java	Sun Jan 27 14:29:22 2008 -0800
+++ b/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/ui/MakeLogicalViewProvider.java	Sun Jan 27 20:58:02 2008 -0800
@@ -931,7 +931,7 @@ public class MakeLogicalViewProvider imp
         }
         
         public void setName(String newName) {
-            String oldName = folder.getName();
+            String oldName = folder.getDisplayName();
             if (folder.getParent() != null && folder.getParent().findFolderByDisplayName(newName) != null) {
                 String msg = NbBundle.getMessage(MakeLogicalViewProvider.class, "CANNOT_RENAME", oldName, newName); // NOI18N
                 DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(msg));
Comment 2 dnikitin 2008-01-29 11:34:01 UTC
Verified in NetBeans IDE Dev (Build 200801290002)