Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Show / hide a menu according to the perspective

Just one more note - the System was designed in a way that core-expressions was one option one can itsown model element and implement something completely different but i have not looked at the rendering code.


Von meinem iPhone gesendet

Am 20.01.2014 um 19:10 schrieb Paweł Doleciński <pawel@xxxxxxxxxxxxx>:

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 <pwebster@xxxxxxxxxxxxxxxxxxx> wrote:
On Mon, Jan 20, 2014 at 8:00 AM, Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx> wrote:

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

Now we have the situation that this value is calculated based upon 2
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)


Paul Webster
Hi floor.  Make me a sammich! - GIR

e4-dev mailing list

e4-dev mailing list

Back to the top