Bug 43003 Disable warning/don't show again checkbox
When I reorder the contents of a source file using 'Source -> Sort Members' I get given a warning box that says task tags will be lost, click OK to continue. Whilst this is a useful warning to show the first time this occurs, it would really be great to be able to disable the warning so that it does not occur each time I am trying to work with code. A preferences checkbox showing disabled warnings, or even using the new 'Error/Warn/Ignore' for Java compile issues could be used so that the warning wasn't shown again, and/or a checkbox on the dialog saying 'Do not show this warning again'. NB the dialog of course only appears in files that have task markers, which I usually have in the form of a // TODO marker when I see this problem. Mac OS X.2.6/Eclipse 3.0M3
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/SortMembersAction.java
MessageDialog.openInformation(shell, getDialogTitle(), ActionMessages.getString("SortMembersAction.not_applicable")); 
		}
	}
	
	
	private boolean containsRelevantMarkers(IEditorPart editor) {
		IAnnotationModel model= JavaUI.getDocumentProvider().getAnnotationModel(editor.getEditorInput());
		Iterator iterator= model.getAnnotationIterator();
		while (iterator.hasNext()) {
			Object element= iterator.next();
			if (element instanceof IJavaAnnotation) {
				IJavaAnnotation annot= (IJavaAnnotation) element;
				if (annot.isRelevant() && !annot.isTemporary() && !annot.isProblem())
					return true;
			}
		}		
		return false;
	}
	
	private void run(Shell shell, ICompilationUnit cu, IEditorPart editor) {
		if (!ActionUtil.isProcessable(getShell(), cu)) {
			return;
		}		
		
		if (containsRelevantMarkers(editor)) {
			if (!MessageDialog.openConfirm(getShell(), getDialogTitle(), ActionMessages.getString("SortMembersAction.containsmarkers"))) { 
				return;
			}
		}
		SortMembersOperation op= new SortMembersOperation(cu, null);