visibleWhen and core expressions [message #1409997] |
Tue, 19 August 2014 14:20 |
Martin odloucký Messages: 49 Registered: July 2010 |
Member |
|
|
Hi, I have a problem making a command visible only when certain part is active. I have taken this approach
http://www.eclipse.org/forums/index.php/t/452233/
however, it seems that the core expression only gets evaluated at startup. When I change the context variable by calling context.set or even context.modify, the state of the command does not get updated. The almighty Lars Vogel, taking the same approach in his tutorial
http://www.vogella.com/tutorials/EclipseRCP/article.html#commandsmore_coreexpressionsown,
does not seem to face such an issue. How come?
Are core expressions supposed to get re-evaluted when the DI context changes? If not, how can I force re-evaluation? I know there is a method IEvaluationService.requestEvaluation but I couldn't obtain instance of the IEvaluationService through dependency injection. Should I obtain it by some 3.x way? Does not the e4 have some new and more fancy ways of handling the evaluation of core expressions?
Thanks.
[Updated on: Tue, 19 August 2014 14:22] Report message to a moderator
|
|
|
Re: visibleWhen and core expressions [message #1411039 is a reply to message #1409997] |
Fri, 22 August 2014 08:35 |
Martin odloucký Messages: 49 Registered: July 2010 |
Member |
|
|
Hi guyes, I am getting a little bit frustrated about this issue. I like the new Eclipse 4 concept, but after 4 releases it still seems rather immature. Or its just my feeling caused by lack of any useful documentation.
Is there more appropriate place to ask such a question where the actual developers of the e4 might answer it? Problems with e4 are slowly piling up and I feel like returning to good old 3.x to save me some hair on my head.
[Updated on: Fri, 22 August 2014 08:36] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03252 seconds