I wanted to introduce a variable for the piece of code between the [ ]:

   createSomething([new PowerfulObject()]);

The createSomething method expects an LessPowerfulObject, an super class of 
PowerfulObject.
Currently IDEA creates following:

   PowerfulObject parameter = new PowerfulObject();
   createSomething(parameter);

But in some cases it would be nice to have the option to choose the 
resulting class for the extracted variable:

   LessPowerfulObject parameter = new PowerfulObject();
   createSomething(parameter);

The choice should be between the created class and all super classes up to 
the expected class.

Best regards
Thomas Singer


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to