use of org.eclipse.ui.commands.HandlerSubmission in project jbosstools-base by jbosstools.
the class AbstractInformationControl method addHandlerAndKeyBindingSupport.
/**
* Adds handler and key binding support.
*
* @since 3.2
*/
protected void addHandlerAndKeyBindingSupport() {
// Register action with command support
if (fShowViewMenuHandlerSubmission == null) {
fShowViewMenuHandlerSubmission = new HandlerSubmission(null, getShell(), null, fShowViewMenuAction.getActionDefinitionId(), new ActionHandler(fShowViewMenuAction), Priority.MEDIUM);
PlatformUI.getWorkbench().getCommandSupport().addHandlerSubmission(fShowViewMenuHandlerSubmission);
}
}
Aggregations