[aida] how do you refacture your classes

Janko Mivšek janko.mivsek at eranova.si
Wed Oct 15 16:10:46 CEST 2008


Hi Rudloph, welcome to the list!

Rudolph Kern wrote:
> Hello community,
> i'm taking a look at aidaweb 5.6 with a Squeak3.9.1web0808.image.
> Doing the tutorial (AdressBook) i'm wondering how do you refacture your classes?
> 
> Lets say (in the tutorial) i want to change "ADemoAddress" to "ARealAddress".
> Is there toolsupport for doing this?
> Or do i have to change all the references by hand?
> Is it possible to keep the (in (squeak)image) persitent data during
> the renaming?
> Or do i have to export the data first, and import the data later back,
> into the image?

You don't need to do anything but rename your class because one of the 
biggest beauties of Smalltalk is that "schema migration" of all objects 
of renamed class is automatic. So, in your System Browser just right 
click on the class and choose rename and voila...

> Any pointers on where to read on are welcome.
> 
> - And of course: many thanks for making these tools (squeak swazoo
> aida documentation) available

Many thanks also to you trying and using it!

Best regards
Janko


-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list