Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IHandlerService query for best-matching handler for given context
IHandlerService query for best-matching handler for given context [message #736036] Thu, 13 October 2011 08:21
Adam Domanski is currently offline Adam Domanski
Messages: 1
Registered: October 2011
Junior Member
Hi!

I'm writing some "wrapper" commands over existing Cut/Copy ones. Due to the dynamic and contextual nature of command handlers, I would like to determine the best-matching handler against provided context snapshot and then determine if cut/copy operation is enabled at all.

It looks like the best method for me would be
org.eclipse.ui.internal.handlers.HandlerService.findHandler(String, IEvaluationContext)
, but it is not exposed through the API. Could it be exposed in the API someday? Are there some constraints?

Cheers,
Adam.
Previous Topic:Is there a hook into the startup processing?
Next Topic:Substitute values at runtime
Goto Forum:
  


Current Time: Wed Jul 23 06:00:27 EDT 2014

Powered by FUDForum. Page generated in 0.01401 seconds