Bug 44443 [Tasks] Problems View should 'filter' more efficiently
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionDeleteCompleted.java
Messages.getString("deleteCompletedTasks.dialogTitle"),  
				Messages.getString("deleteCompletedTasks.noneCompleted"));  
			return;
		}
		String message;
		if (completed.size() == 1) {
			message = Messages.getString("deleteCompletedTasks.permanentSingular"); 
		}
		else {
			message = Messages.format("deleteCompletedTasks.permanentPlural", 
				new Object[] { new Integer(completed.size()) } );
		}
		
		if (!MessageDialog
			.openConfirm(
				part.getSite().getShell(), 
				Messages.getString("deleteCompletedTasks.dialogTitle"),  
				message)) {
			return;
		}
		try {
			ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
				public void run(IProgressMonitor monitor) {
					for (int i = 0; i < completed.size(); i++) {
						IMarker marker = (IMarker) completed.get(i);
						try {
							marker.delete();
						}
						catch (CoreException e) {
						}