Hi,

You should send #update to the presentation. By default the presentation does not update when an action is executed, as the action could be anything.

sourceIn: composite
�� �� ^ composite text
�� �� �� �� title: 'Source code' translated;
�� �� �� �� display: [ :aCompiledMethod | aCompiledMethod sourceCode ];
�� �� �� �� act: [ :presentation :compiledMethod |
�� �� �� �� �� �� compiledMethod methodClass compile: presentation text.
�� �� �� �� �� �� presentation update ]
�� �� �� �� on: $s
�� �� �� �� entitled: 'Save' translated

Cheers,
Andrei

On Sun, Jul 2, 2017 at 7:47 PM, Hilaire <hilaire@drgeo.eu> wrote:
Hi,

In the method bellow, when the method is recompiled, the presenter's
text is still the same (i.e. select another method, then the modified
method: the former source code is still presented).

How to request an update of the presenter's text with the newer method
source?

sourceIn: composite
�� �� ^ composite text
�� �� �� �� title: 'Source code' translated;
�� �� �� �� display: [ :aCompiledMethod | aCompiledMethod sourceCode ];
�� �� �� �� act: [ :presentation :compiledMethod |
�� �� �� �� �� �� compiledMethod methodClass compile: presentation text]
�� �� �� �� on: $s
�� �� �� �� entitled: 'Save' translated

Thanks

Hilaire

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