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

Hi,

this question was asked on the forum a while ago:
There is no equivalent for that, as there is no workbenchWindow in e4. You could try to workaround that by providing your own value for the definition which is set by a event listener that reacts on perspective changes for example.

Greez,
Dirk


On Mon, Jan 20, 2014 at 10:32 AM, Nicolas Sarazin <nicolas.sarazin.pro@xxxxxxxxx> wrote:
Hello,

I use Eclipse 4.3.1 and Eclipse e4 Tools 0.14.0.

How can I show / hide a menu according to the current perspective ?

Menu : Trimmed Window -> Main Menu -> Menu

I looked for "Visible-When _expression_", but I don't find the variable equivalent of "activeWorkbenchWindow.activePerspective" in e4.

Thanks in advance !

_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev



Back to the top