Search in sources :

Example 1 with HandlerSubmission

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);
    }
}
Also used : HandlerSubmission(org.eclipse.ui.commands.HandlerSubmission) ActionHandler(org.eclipse.ui.commands.ActionHandler)

Aggregations

ActionHandler (org.eclipse.ui.commands.ActionHandler)1 HandlerSubmission (org.eclipse.ui.commands.HandlerSubmission)1