Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] Programatically evaluating core expression (on-demand with dedicated context)

Hi all,

I have a question about the Core _expression_ framework.
As part of https://bugs.eclipse.org/421930 and https://github.com/jbosstools/jbosstools-playground/issues/21 , I'm trying to add to an extension point an "activeWhen" element which would allow users to define Core Expressions. Then in the code consuming the extension point, I'd like to be able to evaluate such expressions on-demand (since they don't change the continuous behaviour of the workbench, they are only used from inside a command Handler) and against a different context (context of evaluation would be a resource or a filesystem element, not a selection).
I've seen the IEvaluationService which seems quite reactive and event-oriented and not imperative, so I have some difficulties to understand how to correctly use it for this scenario. Should I directly create and use an instand of EvaluationReference instead? Do you have some pointers to similar usage of core properties?

Cheers,
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top