Place variable one context up in Eclipse JDT

Posted by Bart van Heukelom on Stack Overflow See other posts from Stack Overflow or by Bart van Heukelom
Published on 2010-06-14T15:01:05Z Indexed on 2010/06/14 15:02 UTC
Read the original article Hit count: 256

Filed under:
|
|
|

I've been looking for the Eclipse JDT refactoring tool which allows me to quickly change

if (...) {
  Object x = blablabla;
}

to

Object x;
if (...) {
  x = blablabla;
}
// insert code using x here

But I can't find it. Does something like that exist?

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse