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

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

Back to the top