Bug 242789 [Markers]If you hit escape on the delete markers dialog it deletes them anyway
Right click on a problem marker in the problems view and select delete. You get the confirmation dialog. Hit escape. The marker is deleted anyway. The problem looks to be in org.eclipse.ui.internal.views.markers.DeleteHandler.execute(ExecutionEvent): if (dialog.open() == Window.CANCEL) { return view; } It should probably be if (dialog.open() != Window.OK) { return view; }
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/MessageDialog.java
message, WARNING, new String[] { IDialogConstants.OK_LABEL }, 0); 
        
        
        
        dialog.open();
        return;
    }
    /*
     * @see org.eclipse.jface.dialogs.Dialog#createButton(org.eclipse.swt.widgets.Composite,
     *      int, java.lang.String, boolean)
     */
    protected Button createButton(Composite parent, int id, String label,
            boolean defaultButton) {
        Button button = super.createButton(parent, id, label, defaultButton);
        
        
        if (defaultButton && !customShouldTakeFocus()) {
			button.setFocus();
		}
        return button;
    }
    /**
     * Return whether or not we should apply the workaround where we take focus
     * for the default button or if that should be determined by the dialog. By
     * default only return true if the custom area is a label or CLabel that
     * cannot take focus.
     *