@Dirk
Solution presented in tutorial should work, you are right. Could be I did
something wrong but I didn't work for me. I will check this again tomorrow,
maybe it was problem with my configuration.

Anyway, so far using core expressions with model is not trivial and would
be easier to have that DI based concept.

--
Pozdrawiam / Best regards
Paweł Doleciński


On 20 January 2014 17:16, Paul Webster <[email protected]> wrote:

> On Mon, Jan 20, 2014 at 8:00 AM, Tom Schindl 
> <[email protected]>wrote:
>
>> Hi,
>>
>> Well the model is the backing state of the UI which is represented by
>> the visible-attribute and the renderer should act according to this
>> attribute.
>>
>> Now we have the situation that this value is calculated based upon 2
>> informations:
>> a) the value of the attribute
>> b) the value of the expression
>>
>>
> visibleWhen is in the model, but it is used by our renderer to set the
> visible flag on the model elements (which then drives the visibility).  So
> arguably it doesn't have to be the renderer that cares  about visibleWhen
> (although in our case the renderer makes visibleWhen callouts when a menu
> is about to show, but that updates the model visible flag which then
> updates the SWT widgets)
>
> Later,
> PW
>
> --
> Paul Webster
> Hi floor.  Make me a sammich! - GIR
>
> _______________________________________________
> e4-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/e4-dev
>
>
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to