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
GridData data = new GridData(GridData.FILL_BOTH);
        data.horizontalSpan = 2;
        composite.setLayoutData(data);
        
        customArea = createCustomArea(composite);
        
        if (customArea == null) {
			customArea = new Label(composite, SWT.NULL);
		}
        return composite;
    }
    /**
     * Gets a button in this dialog's button bar.
     * 
     * @param index
     *            the index of the button in the dialog's button bar
     * @return a button in the dialog's button bar
     */
    protected Button getButton(int index) {
        return buttons[index];
    }
    /**
     * Returns the minimum message area width in pixels This determines the
     * minimum width of the dialog.
     * <p>
     * Subclasses may override.
     * </p>
     * 
     * @return the minimum message area width (in pixels)
     */