Hi,

I took a quick look. To get the methods properly update and selected when 
modifying code, you should use the reference to the method, and the not the 
compiled method.

Try this:

methodsIn: composite  
        composite wrapper  title: 'Methods' translated;
                show: [ :wrapper |
                        wrapper fastList 
                                display: [ :aClass | aClass methods collect: [ 
:m | m asRingDefinition ] ];
                                format: [ :aCompiledMethod | aCompiledMethod 
selector asString ] ].
        composite wrapper title:  'Script data' translated;
                show: [ :wrapper |
                        wrapper fastList 
                                display: [ :aClass | aClass class methods  
collect:  [ :m | m asRingDefinition ] ];
                                format: [ :aCompiledMethod | aCompiledMethod 
selector asString ] ].
        composite updateOn: MethodModified from: [ SystemAnnouncer 
uniqueInstance ].

        composite onChangeOfPort: #activePresentation act: [ :presentation | 
                (presentation pane port: #activePresentation) value ifNotNil: [ 
:activePresentation | 
                        ((browser paneNamed: #methods) port: #selection) value: 
(activePresentation defaultPane port: #selection) value ] ].


Cheers,
Doru


> On Jul 13, 2017, at 10:21 AM, Hilaire <hila...@drgeo.eu> wrote:
> 
> Le 13/07/2017 à 10:01, Denis Kudriashov a écrit :
>> What exactly you are implementing?
> Browsers to edit Dr. Geo user script. Explained in a previous mail of
> this thread.
> The idea is to show the user the strict minimum, to reduce confusion.
> 
> Hilaire
> 
> 
> -- 
> Dr. Geo
> http://drgeo.eu
> 
> 
> 

--
www.tudorgirba.com
www.feenk.com

"From an abstract enough point of view, any two things are similar."




Reply via email to