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 <steph...@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 > >