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

Reply via email to