java - Place variable one context up in Eclipse JDT -


I am looking for the Eclipse JDT refactoring tool which I will quickly

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

to

  object x; If (...) {x = blabble; } // Here insert code by using x  

but I can not find it. Is there anything like that?

no

However, you can use it "Split Variable Declaration" Refactoring (CTRL + 1 gives a list of potential refactoring options on declaration) and declaration using cut / paste or drag and drop Instead of moving.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -