|Select command handler based on where it's triggered from? [message #337039]
||Wed, 22 July 2009 20:07
| Eric Jain
Registered: July 2009
Can I assign a different handler to a command, depending on where it was |
triggered from (e.g. from a specific toolbar icon vs from a menu item)?
I know how to override handlers when specific parts are in focus:
<handler class="test.FooHandler" commandId="testCommand">
...but this approach has some limitations (for example I'd like to
override the org.eclipse.ui.newWizard command when a specific view is in
focus, but the default handler should be used when the command is
triggered via the top-level menu, even if the view is still active).
Powered by FUDForum
. Page generated in 0.03815 seconds