Bug 250807 [Markers] Delete handler in problems view should spawn a job
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/DeleteHandler.java
public Object execute(ExecutionEvent event) throws ExecutionException {
		MarkerSupportView view = getView(event);
		if (view == null)
			return this;
		final IMarker[] selected = getSelectedMarkers(event);
		
		
		MessageDialog dialog = new MessageDialog(
				view.getSite().getShell(),
				MarkerMessages.deleteActionConfirmTitle,
				null, 
				MarkerMessages.deleteActionConfirmMessage,
				MessageDialog.WARNING,
				new String[] { IDialogConstants.YES_LABEL,
						IDialogConstants.NO_LABEL }, 0);
		if (dialog.open() != 0) {
			return view;
		}
		for (int i = 0; i < selected.length; i++) {
			try {
				selected[i].delete();
			} catch (CoreException e) {
				Policy.handle(e);
				throw new ExecutionException(e.getMessage(), e);
			}
		}
		return this;
	}
}