final Event trigger) throws CommandException {
// Reset the key binding state (close window, clear status line, etc.)
resetState(false);
final EHandlerService handlerService = getHandlerService();
final Command command = parameterizedCommand.getCommand();
final IEclipseContext staticContext = EclipseContextFactory.create("keys-staticContext"); //$NON-NLS-1$
staticContext.set(Event.class, trigger);
final boolean commandDefined = command.isDefined();
// boolean commandEnabled;
boolean commandHandled;
try {
// commandEnabled = handlerService.canExecute(parameterizedCommand, staticContext);
commandHandled = HandlerServiceImpl.lookUpHandler(context, command.getId()) != null;
try {
handlerService.executeHandler(parameterizedCommand, staticContext);
} catch (final Exception e) {
commandHandled = false;
e.printStackTrace();
}
/*