Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 226316 - Refactoring selected (not just focused) variable not possible
Refactoring selected (not just focused) variable not possible
Status: NEW
Product: groovy
Classification: Unclassified
Component: Refactoring
PC Linux
: P3 (vote)
Assigned To: Martin Janicek
Depends on:
  Show dependency treegraph
Reported: 2013-02-19 10:25 UTC by Vladimir Riha
Modified: 2013-02-19 10:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
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)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo