What happened to DVS refresh button?

Avi Bryant avi at beta4.com
Tue Dec 3 20:06:57 UTC 2002


On Tue, 3 Dec 2002, Stephen Pair wrote:

> "Register the DVS package"
> | dir currentContext |
> currentContext _ thisContext.
> [currentContext home receiver class == StandardFileStream]
>   whileFalse: [currentContext _ currentContext sender].
> dir _ (currentContext home receiver) directory.
> Smalltalk at: #FilePackageManager ifPresent:
> 	[:p | (p registerPackage: '<package name>') directory: dir]!
>
> This would get the correct directory path for the .  It's a little hacky
> I admit, but it works (I got this from Craig's Flow installer).

Well, it works as long as you're filing in from a file.  I'd want a check
to see if you were filing in from some other stream instead.  But yeah,
could do.

> Also, why not make #registerPackage: notify any open Package UIs?  You
> could use a loosely coupled dependency mechanism (to avoid creating an
> un-necessary code dependency).

Yup, could (and should) do.  No time to make those changes just now, but
patches welcomed.  Or I'll get around to it during the week.




More information about the Squeak-dev mailing list