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 226316

Summary: Refactoring selected (not just focused) variable not possible
Product: groovy Reporter: Vladimir Riha <vriha>
Component: RefactoringAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2013-02-19 10:25:00 UTC
To reproduce, please try following:

- create Groovy sample project NetBeans Project Generators
- open NetBeansModule.groovy file, double click on "folder" on line 5 so it is selected
- invoke refactor from context menu (or press Ctrl+R)

=> 

"The Rename refactoring cannot be applied in this context"


If you just place cursor inside the variable (w/o the double clicking) or just invoke context menu directly, it works fine. Having variable selected is necessary to reproduce this. Also if I do the same in groovy file with class, it works again.



Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.6.0_39; Java HotSpot(TM) Client VM 20.14-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_39-b04
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)