Re: [Pharo-dev] Trying to use Rubric in Nautilus ....
Thanks alain Before asking we read all the examples and I saw that selector: is used to communicate and update the code pane. (UIManager default newAutoAcceptTextEntryFor: self get: #selector set: #selector: class: String getEnabled: #haveClassName help: 'Enter a selector' translated entryCompletion: entryCompletion) acceptOnCR: false; ghostText: 'Selector'; withDropListButton; Now my problem (and may be there is not solution) is how can I connect from a pluggableListMorph to a RubScrollText when the list does not generate announcement. This is why I tried to pass via dependents or something like that. I will try to generate announcements but this is a lot more work and I do not know if it will work. Stef
Ok i see. It is possible to code an adapter with the pluggabletexmorph protocol. I will try to do it tomorrow. Cheers Alain De:"stepharo" <stepharo@free.fr> Date:mar j mai PM à 21:44 Objet:Re: [Pharo-dev] Trying to use Rubric in Nautilus .... Thanks alain Before asking we read all the examples and I saw that selector: is used to communicate and update the code pane. (UIManager default newAutoAcceptTextEntryFor: self       get: #selector       set: #selector:       class: String       getEnabled: #haveClassName       help: 'Enter a selector' translated       entryCompletion: entryCompletion)         acceptOnCR: false;         ghostText: 'Selector';         withDropListButton; Now my problem (and may be there is not solution) is how can I connect from a pluggableListMorph to a RubScrollText when the list does not generate announcement. This is why I tried to pass via dependents or something like that. I will try to generate announcements but this is a lot more work and I do not know if it will work. Stef
2015-05-12 21:44 GMT+02:00 stepharo <stepharo@free.fr>:
Thanks alain
Before asking we read all the examples and I saw that selector: is used to communicate and update the code pane.
(UIManager default newAutoAcceptTextEntryFor: self get: #selector set: #selector: class: String getEnabled: #haveClassName help: 'Enter a selector' translated entryCompletion: entryCompletion) acceptOnCR: false; ghostText: 'Selector'; withDropListButton;
I think this is only for the drop down list. In RubMethodEditingExample>>#selector: it calls the update explicit self updateCodeWith: (cls sourceCodeAt: selector) and updateCodeWith: sets the text on the text model.
Now my problem (and may be there is not solution) is how can I connect from a pluggableListMorph to a RubScrollText when the list does not generate announcement. This is why I tried to pass via dependents or something like that.
I will try to generate announcements but this is a lot more work and I do not know if it will work.
Stef
For fun I put the following trace in sourceCodeFrom: aTextMorph Transcript show: '.'. ^ self sourceCode And in general this method is invoked three times instead of one :)
Before asking we read all the examples and I saw that selector: is used to communicate and update the code pane.
(UIManager default newAutoAcceptTextEntryFor: self get: #selector set: #selector: class: String getEnabled: #haveClassName help: 'Enter a selector' translated entryCompletion: entryCompletion) acceptOnCR: false; ghostText: 'Selector'; withDropListButton;
I think this is only for the drop down list.
What I meant is that I could use set: and pass the selector to be invoked by the dropdown when the drop down is selected. And it will notify self with the selector: selector. So we could sepcify any selector (ie I can register to the drop box and say call me once you are set).
In RubMethodEditingExample>>#selector: it calls the update explicit self updateCodeWith: (cls sourceCodeAt: selector) and updateCodeWith: sets the text on the text model.
Now my problem (and may be there is not solution) is how can I connect from a pluggableListMorph to a RubScrollText when the list does not generate announcement. This is why I tried to pass via dependents or something like that.
I will try to generate announcements but this is a lot more work and I do not know if it will work.
Stef
see Rubric-AlainPlantec.196 in the Rubric repo. Iâve added RubPluggableTextMorph and RubPluggableTextMorphExample. Need to be polished certainly but it should facilitate the integration of Rubric in Nautilus. cheers Alain
On 12 May 2015, at 22:45, stepharo <stepharo@free.fr> wrote:
For fun I put the following trace in
sourceCodeFrom: aTextMorph Transcript show: '.'. ^ self sourceCode
And in general this method is invoked three times instead of one :)
Before asking we read all the examples and I saw that selector: is used to communicate and update the code pane.
(UIManager default newAutoAcceptTextEntryFor: self get: #selector set: #selector: class: String getEnabled: #haveClassName help: 'Enter a selector' translated entryCompletion: entryCompletion) acceptOnCR: false; ghostText: 'Selector'; withDropListButton;
I think this is only for the drop down list.
What I meant is that I could use set: and pass the selector to be invoked by the dropdown when the drop down is selected. And it will notify self with the selector: selector. So we could sepcify any selector (ie I can register to the drop box and say call me once you are set).
In RubMethodEditingExample>>#selector: it calls the update explicit self updateCodeWith: (cls sourceCodeAt: selector) and updateCodeWith: sets the text on the text model.
Now my problem (and may be there is not solution) is how can I connect from a pluggableListMorph to a RubScrollText when the list does not generate announcement. This is why I tried to pass via dependents or something like that.
I will try to generate announcements but this is a lot more work and I do not know if it will work.
Stef
participants (3)
-
Alain Plantec -
Nicolai Hess -
stepharo