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
/**
     * Constant for a dialog with no image (value 0).
     */
    public final static int NONE = 0;
    /**
     * Constant for a dialog with an error image (value 1).
     */
    public final static int ERROR = 1;
    /**
     * Constant for a dialog with an info image (value 2).
     */
    public final static int INFORMATION = 2;
    /**
     * Constant for a dialog with a question image (value 3).
     */
    public final static int QUESTION = 3;
    /**
     * Constant for a dialog with a warning image (value 4).
     */
    public final static int WARNING = 4;
    /**
     * Labels for buttons in the button bar (localized strings).
     */
    private String[] buttonLabels;
    /**
     * The buttons. Parallels <code>buttonLabels</code>.
     */
    private Button[] buttons;
    /**