Bug 39264 Override method dialog: Selection get's lost when toggling tree/flat mode
20030624 1. Open the setter/getter dialog, enable the tree mode 2. select some getters and setters 3. toggle to the flat list: Elements still selected 4. toggle to the tree mode: Tree collapsed (Should remember the old state) 5. Open the tree: No nodes checked, description still stays '2 of 5 selected'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OverrideMethodDialog.java
}
				return 0;
			} else {
				return super.compare(viewer, e1, e2);
			}
		}
	}
	
	private static class OverrideMethodValidator implements ISelectionStatusValidator {
		private static int fNumMethods;
			
		public OverrideMethodValidator(int entries) {
			super();
			fNumMethods= entries;
		}		
			
		/*
		 * @see ISelectionValidator#validate(Object[])
		 */
		public IStatus validate(Object[] selection) {
			int count= 0;
			for (int i= 0; i < selection.length; i++) {
				if (selection[i] instanceof IMethod) {
					count++;
				}
			}
			if (count == 0) {
				return new StatusInfo(IStatus.ERROR, ""); 
			}
			String[] args= { String.valueOf(count), String.valueOf(fNumMethods)};