[ENH][SMLoader] EZLoadScripts
Brent Vukmer
bvukmer at blackboard.com
Tue Apr 1 17:35:56 UTC 2003
so here's a quickie script that looks up the UUIDs:
| map names uuids |
map _ SMSqueakMap default.
map loadUpdates.
uuids _ OrderedCollection new.
names _ { 'Menus Enhancements'. 'SystemWindow Enhancements'. 'ScrollBars Enhancements'. }.
names do: [ :pkgName | uuids add: (map cards keyAtValue: (map cardWithName: pkgName) ifAbsent:[ nil ] )].
uuids
then, using the UUIDs, load the packages:
| uuids map |
map _ SMSqueakMap default.
uuids _ { 'd67275c5-1fe7-48ed-be30-60b82154afb9'. 'af7fdfeb-8cee-41fc-9d26-7b7f70dddf03'. '22ec37df-8537-40ac-b7fb-e2c307211746' }.
uuids do: [ :uuid | map installPackageWithId: uuid ].
> -----Original Message-----
> From: Brent Vukmer
> Sent: Tuesday, April 01, 2003 12:19 PM
> To: The general-purpose Squeak developers list
> Subject: RE: [ENH][SMLoader] EZLoadScripts
>
>
> I'm an idiot. See SMSqueakMap >> installPackageWithId: ( and
> SMSqueakMap >> installPackageNamed: , if you want to live
> dangerously ;) )
>
> > -----Original Message-----
> > From: Ned Konz [mailto:ned at bike-nomad.com]
> > Sent: Tuesday, April 01, 2003 12:04 PM
> > To: The general-purpose Squeak developers list
> > Subject: Re: [ENH][SMLoader] EZLoadScripts
> >
> >
> > On Tuesday 01 April 2003 08:49 am, Brent Vukmer wrote:
> > > From the preamble:
> > >
> > > These helper methods make load scripts incredibly easy --
> if you've
> > > installed SqueakMap. Check out the one-liner for loading Diego
> > > Gomez Deck's UI enhancements:
> > >
> > > SMLoader loadPackagesNamed: { 'Menus Enhancements'. 'SystemWindow
> > > Enhancements'. 'ScrollBars Enhancements'. }.
> >
> > That works until they rename the packages.
> >
> > It would be better to have a method that would spit out the proper
> > load script code that uses UUIDs.
> >
> > --
> > Ned Konz
> > http://bike-nomad.com
> > GPG key ID: BEEA7EFE
> >
> >
> >
>
>
More information about the Squeak-dev
mailing list
|