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
public void selectionChanged(IStructuredSelection selection) {
		boolean enabled= false;
		try {
			enabled= getSelectedCompilationUnit(selection) != null;
		} catch (JavaModelException e) {
			
			if (JavaModelUtil.filterNotPresentException(e))
				JavaPlugin.log(e);
		}
		setEnabled(enabled);
	}	
	
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction
	 */
	public void run(IStructuredSelection selection) {
		Shell shell= getShell();
		try {
			ICompilationUnit cu= getSelectedCompilationUnit(selection);
			int cuMembers= cu.getTypes().length;
			
			IType type= cu.findPrimaryType();
			int memberCount= type.getChildren().length;
			if (cuMembers <= 1 && memberCount <= 1) {
				MessageDialog.openInformation(getShell(), getDialogTitle(), ActionMessages.getString("SortMembersAction.no_members")); 			
				return;
			}
			
			if (cu == null || !ElementValidator.check(cu, getShell(), getDialogTitle(), false)) {
				return;