Novel form of refactoring

Brian T Rice water at tunes.org
Fri Oct 24 22:41:52 UTC 2003


On Fri, 24 Oct 2003, Avi Bryant wrote:

> Brian T Rice wrote:
>
> >On Fri, 24 Oct 2003, Marcus Denker wrote:
> >>[
> >>class := Smalltalk allClasses atRandom.
> >>Browser fullOnClass: class selector: (class methodDict keys atRandom]
> >>] on: Error do: [:e | e retry]
> >
> How about this:
>
> packageName := 'MyPackage'.
> methodRef := (PackageInfo named: packageName) methods atRandom.
> Browser fullOnClass: methodRef actualClass selector: methodRef methodSymbol.
>
> Cheers,
> Avi

That's much better, and a great PackageInfo demo. :-)

Now, what would make a suitable UI hook for this? A context menu entry? If
so, where?

-- 
Brian T. Rice
LOGOS Research and Development
http://tunes.org/~water/



More information about the Squeak-dev mailing list