Bug 241384 [Markers] Cannot delete marker from in marker, problems, task or bookmarks view
Build ID: I20080617-2000 Steps To Reproduce: 1. Select any type of marker (bookmark, user-created task, problem marker etc.) and try to delete it 2. A popup window appears and wants your confirmation to delete the marker 3. Nothing happens. The marker is still alive and kicking. More information: Deleting a bookmark or user created task by right clicking on them in the editor's annotation bar works. Don't know if this matters but I have installed Eclipse CDT with Mylin support.
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;
		
		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() == Window.CANCEL) {
			return view;
		}
		final IMarker[] selected = getSelectedMarkers(event);
		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;
	}
}