title: Refactoring variable names in Eclipse
body: <p>In a java project I'm creating a bunch of subclasses of an abstract class.</p>
  
  <pre><code>public abstract class Foo {
      protected String myFoo;
  }
  
  public class SubFoo extends Foo {
      public void fooMethod() {
          super.getClass().getDeclaredFields()[0].set(this, "something");
      }
  }
  </code></pre>
  
  <p>because of a nasty habit of renaming variable names all the time I refrain from referring to them by name, which gets tiresome.. Writing this question I'm realizing a better solution would be a setter method in <code>Foo</code>, but I really prefer not to, so my question stands:</p>
  
  <p>Is there a way to refactor variable names in Eclipse such that all references to the old variable, in all classes, are updated?  <code>ALT+SHIFT+R</code> only changes in the same class :(</p>