I have a problem figuring out how to override a command, and specifically:
org.eclipse.ui.edit.text.showInformation
in Eclipse RCP.
It look like extending through org.eclipse.ui.handlers
never trigger my handler, and the console always returns:
COMMANDS >>> execute >>> starting: id=org.eclipse.ui.edit.text.showInformation; event=ExecutionEvent(Command(org.eclipse.ui.edit.text.showInformation,Show Tooltip Description,
Displays information for the current caret location in a focused hover,
Category(org.eclipse.ui.category.textEditor,Text Editing,Text Editing Commands,true),
org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@325c29d9,
,,true),{},null,org.eclipse.e4.core.commands.internal.HandlerServiceImpl$ExecutionContexts@9a49ddd)
COMMANDS >>> execute >>> success: id=org.eclipse.ui.edit.text.showInformation; returnValue=null
CONTEXTS >>> [org.eclipse.ui.actionSet.keyBindings, org.eclipse.ui.edit.text.actionSet.annotationNavigation, org.eclipse.ui.contexts.dialogAndWindow, org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo, org.eclipse.search.searchActionSet, org.eclipse.ui.edit.text.actionSet.navigation, org.eclipse.ui.cheatsheets.actionSet, org.eclipse.ui.NavigateActionSet, org.eclipse.ui.externaltools.ExternalToolsSet, org.eclipse.ui.contexts.window, org.eclipse.ui.actionSet.openFiles]
Which really smells like I am not doing something necessary (it always goes to the default InformationDispatchAction in AbstractTextEditor).
The comments suggest I don't have org.eclipse.ui.textEditorScope
, but how to add a context to the execution of the handler?