Best I can come up with for now
| classPrefix categoryName p classes |
classPrefix := 'Mal'.
categoryName := 'Moose-Algos-LinearAlgebra'.
p := Registry packageNamed: 'LinearAlgebra'.
classes := p allClasses collect: #actual.
classes do: [ :each |
each category: categoryName.
each renameAndFixSourceTo: classPrefix , each name ]
On 23 juin 2011, at 11:30, Simon Denier wrote:
On 17 juin 2011, at 13:26, Simon Denier wrote:
Does anybody have a working VW image? If yes, can
you load Hapax and export it to the squeaksource project Moose-Algos?
http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak
Can anyone remind me of how to access a package in Visual works?
I need to run the following script, except I don't know how to get the package object
in VW
| classPrefix categoryName |
classPrefix := 'XY'.
categoryName := 'Squeak Category Name'.
PackageName classes do: [ :each |
each category: categoryName.
each renameAndFixSourceTo: classPrefix , each name ]
--
Simon Denier
--
Simon Denier