How to rename a lot of classes at once?

Yanni Chiu yanni at rogers.com
Tue Dec 26 18:33:16 UTC 2006


Todd Blanchard wrote:
> I have a whole hierarchy of classes with some prefix AA.  I generated  a 
> clone of the hierarchy with a prefix like BB.
> 
> Now I am happy with the changes I've made to BBClass and want to  
> replace the AAClass hierarchy with the BBClass hierarchy by deleting  
> the AAClasses and renaming BBClasses to AAClasses.

How about:

- fileout your BB classes
- use an editor (the Squeak file browser for example)
   to search&replace BB with AA
- filein
- remove all your BB classes
- note: all the original AA instances will be migrated




More information about the Squeak-dev mailing list