I extended the browser definition with:

    browser transmit 
        from: #scripts; 
        from: #categories; 
        to: #methods;
        when: [ :a :b |  a isMeta not ];
        andShow: [:a | self methodsIn: a  ].
    browser transmit 
        from: #scripts; 
        from: #categories; 
        to: #methods;
        when: [ :a | a isMeta ];
        andShow: [:a | self classMethodsIn: a  ].


However it does not work as #when: message always receive a class, so
the wrong methods a re list in the method pane.

I enclosed a Fileout of the browser. It works independently of DrGeo.
When one select class methods, still the instance methods are displayed
in right most pane.

Any tips?

Thanks

Hilaire


Le 29/06/2017 à 14:59, Hilaire a écrit :
> but something is missing to get the listed method right depending on the
> category is instance or class side. I don't how to do it.

-- 
Dr. Geo
http://drgeo.eu

Attachment: DrGScriptBrowser.st
Description: application/squeak-changeset

Reply via email to