[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-ui-dev] Is enableWhen missing the e4 application model?
|
Sounds like either introducing a new annotation like @ActiveWhen. Or adding a model element similar to visibleWhen.
I don't have an idea on the implementation details yet, but typically I am not a big fan of to much custom annotations.
Am 11.02.2016 11:01 schrieb "Wim Jongman" <
wim.jongman@xxxxxxxxx>:
No it can't. If you attach two handlers for the same command in one part, only one will be executed/evaluated. I tried fooling this by toggling the @CanExecute for both handlers but only the first handler is ever considered.
TL;DR;
The model and E3 have different concepts for activeWhen. While E3's is more fine grained, E4's concept of activeWhen is mor straightforward but maybe not flexible enough.
It would make a nice addition to be able to add expressions to the handlers. It would not be too difficult to evaluate which one gets preference because there already is a simple evaluation chain which could be extended.
I am not in favor of having to go back to plugin.xml for the definition of the _expression_.
Here is a screenshot from the model:

Cheers,
W.
_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev