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.
[ BUILD # : 20071015 ] [ JDK VERSION : 1.6.0_02 ] I tried to rename a static variable in a regular java class file. I used the right-click context menu to refactor->rename and it worked like a charm. I noticed when I selected that it also lists ctrl+R as a shortcut for doing this. The next time I wanted to rename a field I tried ctrl+R and nothing happened. I tried ctrl+R and ctrl+r. I'm running KDE, I know sometimes there are shortcuts issues there but figured I'd report. I looked around and found this similar issue but with ruby 116874.
What's are modifiers of the renamed element? If it is private field, the instant rename should be invoked instead of regular refactoring/rename.
It is a privately declared static constant in a class file. I guess I didn't realize that is what happened. Any way a message can appear on the status bar or something to indicate to the user that they should type or something to rename the variable? If you do not have that field referenced in your viewable portion of that file it looks like nothing happens at all. I find the behavior odd that when I highlight my field and go to refactor->rename I get one result. And if I use the keyboard shortcut listed in that very menu item I get a different result. Seems inconsistent and confusing. Especially since I had already highlighted the entire field name before pressing ctrl+R. Maybe even if the color was different than the normal highlight color?
Yeah, the indication that a live template has been activated is not very good at the moment and as you said in some situations it can look like that the action that triggered the template on is broken. There is RFE to improve the state, see issue #108161. Thanks for the report. *** This issue has been marked as a duplicate of 108161 ***