In Eclipse
(I am running 3.8.0 @ Linux (Mint 14 (Ubuntu (Debian))) at the moment), renaming variables using Refactor
is an option that seems randomly available. For some code it's there, and for other code it's not.
I tried to see a pattern why some var
declarations are up for renaming and others are not, but I haven't found it yet.
Why does refactor->rename not work for some code? How can I make this work?
You can see by the highlighted references that Eclipse is very aware of what should be refactored, so I don't understand what the problem is.
No problem:
Problem: