This can be done with Tools->Migrate... Just change the old class to the new one. This works even if the old class is not in your project; it does not rename, only changes references. Make sure you exclude the new class from the refactor if it extends the old class, or it will try to extend itself. (IntelliJ guys, this is a bug!)
Marc Palmer wrote: > Hi, > > I couldn't find a way to do this (I have 602). Basically I wanted to > replace all usages of java.awt.Rectangle with my own IntRect class, for > the purposes of optimisation and independence. > > However, I could not get IDEA to do this for me. I had to do a "Replace > in path" which is not the same thing at all! It takes a lot longer, and > you have to go and correct the imports too. > > With lots of source files, this can be pretty nasty and error-prone. > > Is this possible and I'm just blind? Or is this a different kind of > refactoring - "Replace class X with class Y"? > > Marc > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ W<A> ~~~~~ > (o) Wangjammer5 (Marc Palmer) > ( ) Wangjammer7 > > www.wangjammers.org = Java Consultants (Web|Smartcards|Crypto) > > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list > > -- Erb ============================================================== "The only time I like in the morning is afternoon." - Russell D. Cooper "If you do everything, then you're all done." - Melissa F. Cooper "Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall ============================================================== _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
