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 202426

Summary: Ctrl-R rename refactoring should end on tab, space, not just enter or Esc. It should not insert tabs beside all occurances of the variable.
Product: java Reporter: swpalmer <swpalmer>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description swpalmer 2011-09-21 14:21:24 UTC
Product Version = NetBeans IDE Dev (Build 201109202329)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

Currently while renaming a variable (Java) with Ctrl-R If I press tab during the rename it inserts a tab everywhere that the variable is found.  Since a tab (or space, etc) is not a valid character in a Java identifier this should not happen.
While Tab may not make much sense, I was pressing it because I was renaming a method parameter and the context looked very much like the auto-complete of a method call, where pressing tab moves to the next parameter. I actually was going to rename the next parameter in the method declaration as well, so it seemed natural :-)