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 119081 - [60cat] ctrl+R does not do anything
Summary: [60cat] ctrl+R does not do anything
Status: RESOLVED DUPLICATE of bug 108161
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 16:47 UTC by ahagopian
Modified: 2007-11-05 13:44 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 ahagopian 2007-10-16 16:47:23 UTC
[ 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.
Comment 1 Jiri Prox 2007-10-16 18:52:33 UTC
What's are modifiers of the renamed element? If it is private field, the instant rename should be invoked instead of
regular refactoring/rename. 
Comment 2 ahagopian 2007-10-16 19:30:07 UTC
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?
Comment 3 Vitezslav Stejskal 2007-10-17 12:24:01 UTC
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 ***