This would be possible, if you would have used factory methods.

Tom

At 07:46 09.01.02 -0600, you wrote:
>Maybe this is already possible?
>Sometimes I need to subclass a thirdparty class and replace
>all/some references to my new class (mostly constructors,
>but sometimes also local variables).
>
>Imagine *lots* of lines like this:
>
>private StandardHandler m_handler = new StandardHandler(123);
>
>and I would like to have:
>
>// this is the most crucial form
>private StandardHandler m_handler = new MyHandler(123,456);
>
>// this is less crucial form
>private MyHandler m_handler = new MyHandler(123,456);
>
>
>The first form would be perhaps best if:
>- I create the MyHandler class (that may have several
>    constructors)
>- then I select the "new StandardHandler" call and
>   invoke "substitute constructor" that may offer
>   constructors of subclasses with defaults for additional
>   arguments (like signature change).
>- in the Refactorings list I can review the changes and
>   finish the task.
>
>
>r.
>
>_______________________________________________
>Eap-features mailing list
>[EMAIL PROTECTED]
>http://www.intellij.com/mailman/listinfo/eap-features


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

Reply via email to