public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection sel = HandlerUtil.getCurrentSelection(event);
Object o = Selections.getFirstSelection(sel);
if (o instanceof BaseCamelVariable) {
BaseCamelVariable var = (BaseCamelVariable)o;
CamelDebugTarget cdt = (CamelDebugTarget)var.getDebugTarget();
if (MessageDialog.openQuestion(HandlerUtil.getActiveShell(event), "Reset Debug Counter", "Do you really want to reset the debug counter?")) {
cdt.getDebugger().resetDebugCounter();
}
}
return null;
}