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.
When refactor|renaming, the "Apply rename on comments" checkbox does not affect anything. Steps to reproduce: ------------------- 1) Create a new java class 2) Place carret in its declaration 3) Invoke Refactor|Rename, check "Apply rename on comments" checkbox => Comments were not affected by rename --- NetBeans IDE Dev (Build 061030) 1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b103 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8
*** Issue 90411 has been marked as a duplicate of this issue. ***
*** Issue 95435 has been marked as a duplicate of this issue. ***
Cannot be fixed before issue 91915.
*** Issue 94995 has been marked as a duplicate of this issue. ***
If I'm renaming something and I want to update files, search/replace in comments is useful, but wouldn't it be better to be more general and let me update all other references, such as references in XML files, .properties files and such? In other words, instead of [x] Apply rename on comments wouldn't it be better to have [x] Apply rename to all file types (plain text replacement)
> If I'm renaming something and I want to update files, search/replace in comments is useful, but > wouldn't it be better to be more general and let me update all other references, such as references in > XML files, .properties files and such? Of course, but it is different feature. You still can have comments in XML files.
Yes, I'm just arguing that this other feature (searching for references in all files) is more important than one limited to comments. A comment search is going to be a raw text search/replace, and that ought to be available for all files. Even in an XML file, I wouldn't want it limited to comments. If you take a look at a typical NetBeans layer XML file for example, it can have class name references as element attribute values.
*** Issue 111242 has been marked as a duplicate of this issue. ***
*** Issue 60674 has been marked as a duplicate of this issue. ***
*** Issue 111967 has been marked as a duplicate of this issue. ***
Fixed with 91915
Oops. Not fixed. Yet. Refactoring part missing. Will fix.
The checkbox should work now: Checking in nbproject/project.xml; /cvs/refactoring/java/nbproject/project.xml,v <-- project.xml new revision: 1.13; previous revision: 1.12 done Checking in src/org/netbeans/modules/refactoring/java/plugins/RenameTransformer.java; /cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/plugins/RenameTransformer.java,v <-- RenameTransformer.java new revision: 1.14; previous revision: 1.13 done Checking in src/org/netbeans/modules/refactoring/java/plugins/RenameRefactoringPlugin.java; /cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/plugins/RenameRefactoringPlugin.java,v <-- RenameRefactoringPlugin.java new revision: 1.33; previous revision: 1.32 done
Verified. --- Product Version: NetBeans IDE Dev (Build 20071105063257) Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03 System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) Userdir: /home/maxa/.netbeans/dev