This seems to be possibly to achieve via using "Migration" (see Tools menu) first to replace all usages to your own class and then Change Signature to modify constructor calls. Isn't it?
Best regards, Valentin Kipiatkov ----------------------------------------------------------- IntelliJ Software, http://www.intellij.com/ "Develop with pleasure" ----------------------------------------------------------- ----- Original Message ----- From: "Nemec, Richard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 09, 2002 4:46 PM Subject: [Eap-features] One useful refactoring > 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
