But nicolai I know announcement. Now the widgets of Nautilus do not use announcement so I do not know if I
can�� simply replace self changed: #sourceCodeFrom:
I do not know the implication of removing sourceCodeFrom:

Le 12/5/15 17:41, Nicolai Hess a ��crit��:
Announcements!

replace
self changed: #sourceCodeFrom:.
with something like
self announcer announce:RubTextSetInModel.

( I am not sure what RubXXAnouncement to use)





2015-05-12 17:14 GMT+02:00 stepharo <stepharo@free.fr>:
We tried all kind of combinations....


�� �� ��modelEditor := (RubSmalltalkMethodEditorModel new client: self).
�� �� widget := modelEditor newScrolledText.


�� �� widget
�� �� �� �� on: self
�� �� �� �� text: #sourceCodeFrom:
�� �� �� �� accept: #compileSource:notifying:
�� �� �� �� readSelection: #contentsSelectionFrom:
�� �� �� �� menu: #sourceCodeMenu:shifted:.

�� �� self addDependent: modelEditor.
�� �� self when: #sourceCodeFrom: send: #setText: to: modelEditor.

�� �� widget
�� �� �� �� beWrapped;
�� �� �� �� beForSmalltalkCode;
�� �� �� �� withLineNumbers;
�� �� �� �� setText: self sourceCode;
�� �� �� �� setTextSelector: #halt.
�� �� ^ widget


But we cannot get the editor or the widget to be invoked when the list changes.
So we spent three hours on it so we should stop. We are missing just this bit.

Stef