[squeak-dev] System Browser feature request

Eliot Miranda eliot.miranda at gmail.com
Fri Jan 19 23:52:36 UTC 2018


Hi Kjell,

> On Jan 19, 2018, at 3:32 PM, Kjell Godo <squeaklist at gmail.com> wrote:
> 
> this Monticello trick is very nice to know
> 
> Dolphin Smalltalk has this in all the Class browsers and it is very nice
> and you can use it in your programming to make
> system wide cross package groupings or changes
> 
> it is probably easy to do in Squeak Pharo
> 
> just using a script 
> 
> it would be cool to know what that script is
> 
> just getting a sequence of Methods or method names would be good

self systemNavigation alImplementorsOf: #foo

answers a sequence of MethodReference which respond to #actualClass.  So...

(self systemNavigation alImplementorsOf: #foo) do:
    [:mr |
     mr actualClass organization
        classify: mr selector
        under: '*MyPackage-daylight robbery']

A hint is to inspect tool buttons that do things you'd like to do by script and trace through their implementation, ideally in the debugger.  Remember that in a self-implemented system everything will be accessible at the language level.  Just practice exploring a bit.

Another hint is to use MethodFinder or Message Names.  I use the latter to program/browse across package and class boundaries.  Message Names takes s semicolon separated list of patterns so you can type things like
    *senders*;*implementors*
to find all selectors and methods in the system that match either of those.

The system is so large now that this exploration is much more difficult than when it had 2,200 methods; it now has that number of classes and metaclasses.  But it is still possible and fruitful.  And looking at the core classes like Behavior, ClassDescription and CompiledMethod will provide you with tools you can use.

HTH

> 
> 
>> On Fri, Jan 19, 2018 at 15:21 Chris Muller <asqueaker at gmail.com> wrote:
>> I've wanted to see that before, too.  There is a work-around by
>> browsing the package from the Monticello browser.  In there, you can
>> see all the method extensions by class.
>> 
>> On Fri, Jan 19, 2018 at 3:11 PM, Louis LaBrunda
>> <Lou at keystone-software.com> wrote:
>> > Hi All,
>> >
>> > In the System Browser with a category selected it would be nice to see not only the classes
>> > defined as in the category but classes with methods added for the category.  This would allow
>> > one to see classes extended by the category.  Different colors or highlighting to distinguish
>> > them would also be nice.
>> >
>> > Sorry if I'm not using the correct terms for the browser and category.
>> >
>> > I have no idea how the Squeak browsers work nor how much effort this feature might take, so I
>> > hope I'm not asking for too much.  It goes without saying, I don't think I know Squeak well
>> > enough to tackle this myself.
>> >
>> > Lou
>> > --
>> > Louis LaBrunda
>> > Keystone Software Corp.
>> > SkypeMe callto://PhotonDemon
>> >
>> >
>> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180119/2d50c6ba/attachment-0001.html>


More information about the Squeak-dev mailing list