Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » (Popup) menu item visibility without core expressions?
(Popup) menu item visibility without core expressions? [message #1734316] Tue, 07 June 2016 04:54 Go to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
I know I can control menu item visibility using core expressions. Are there any plans of allowing to control visibility using something along the lines of @CanExecute? Or is it just not possible?

OK, in general, visibility of an item cannot really depend on code in a (or in some) handler(s) - it has to be independent from that. But having a menu item with a single handler is quite a common situation where it would be great if one could specify visibility a bit simpler than using core expressions.

Peter
Re: (Popup) menu item visibility without core expressions? [message #1734321 is a reply to message #1734316] Tue, 07 June 2016 06:49 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
That is currently not supported. I also don't know any plans on that. The only thing I remember is a discussion about supporting Java based types of expressions. So it is not necessary to define core expressions. But IIRC that is currently only in the heads of a few people and we had first discussions. Nothing really finished or implemented.
Re: (Popup) menu item visibility without core expressions? [message #1734325 is a reply to message #1734321] Tue, 07 June 2016 07:59 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Dirk is right. We designed the system in a way that adding different
(I'd say simpler) expression definitions eg in Java, but nobody invested
the time (=money) to implement it.

In general you can naturally also simply modify the application-model
from eg an Addon who tracks the state (setting eg toBeRendered). The
only caveat might be that the (swt-)renderers are buggy and don't pick
up your model changes.

Tom

On 07.06.16 08:49, Dirk Fauth wrote:
> That is currently not supported. I also don't know any plans on that.
> The only thing I remember is a discussion about supporting Java based
> types of expressions. So it is not necessary to define core expressions.
> But IIRC that is currently only in the heads of a few people and we had
> first discussions. Nothing really finished or implemented.
Previous Topic:Does e4 RCP support adding features (plug-ins) by copying them into the plug-in directory?
Next Topic:Pre-Shutdown hooks
Goto Forum:
  


Current Time: Fri Apr 26 12:23:29 GMT 2024

Powered by FUDForum. Page generated in 0.03936 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top