how do you refacture your classes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how do you refacture your classes

Rudolph Kern
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?

Any pointers on where to read on are welcome.

- And of course: many thanks for making these tools (squeak swazoo
aida documentation) available

Rudolph
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: how do you refacture your classes

Janko Mivšek
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
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida