title: How to refactor variable type in Eclipse?
body: <p>I want to refactor code like this:</p>
  
  <pre><code>int x=4;
  int y=x;
  System.out.println(y);
  </code></pre>
  
  <p>How can i do this automatically in Eclipse so x's type promotion to long would cause dependent variables to change their types also:</p>
  
  <pre><code>long x=4;
  long y=x;
  System.out.println(y);
  </code></pre>
  
  <p>?</p>