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 12:21
Adam Domanski is currently offline Adam DomanskiFriend
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: Fri Dec 19 04:39:48 GMT 2014

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

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