[Monticello2] Loading from a repository
damien.cassou at gmail.com
Mon Jul 16 18:49:29 UTC 2007
2007/7/16, Colin Putney <cputney at wiresong.ca>:
> No, you need to have a slice do the loading. Here's some code to save
> and then reload a snapshot:
> "Create a working copy and repository"
> wc := MDWorkingCopy forImageProxy: MDWorkingCopy defaultImageProxy.
> memory := MDMemoryRepository new.
> "Create a slice"
> slice := MDPackageInfoSlice named: 'Refactory'.
> "Save it"
> snapshot := slice saveFrom: wc to: memory.
> "Load it"
> slice load: snapshot from: memory to: wc.
How do you load a slice in a new image if it's not a PackageInfo then?
More information about the Squeak-dev