[Cuis-dev] [Integrated] Re: Add dynamic 'Accept' TextEditor menu entry

Juan Vuletich juan at jvuletich.org
Fri Sep 20 04:27:11 PDT 2019


On 9/17/2019 4:55 PM, Philip Bernhart via Cuis-dev wrote:
> Hello all,
>
> the attached changeset refactors a little bit the existing
> TextEditor menu into different sections which are attached
> to the menu generated with #getMenu.
>
> I did that so that getMenu get's a little bit more readable
> to me and also to add my little enhancement of showing
> 'Accept' entry on text model morphs which provide a textprovider
> and setter. And also return true when setting a value with the
> given setter.
>
> Example code:
>
>      model := TestModel new.
>
>      morph := TextModelMorph
>              textProvider: model
>              textGetter: #value
>              textSetter: #value:. "value: returns true"
>
>      morph openInWorld.
>
>
> Then a 'Accept (s)' entry shows up in the context menu,
> which is in my opinion a valueable addition.
>
> What do you think?
>
>
> Thanks for your time,
> Philip
>

Thanks! Now @ GitHub.

Cheers,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list