Bug 38477 add delegate methods: OK enabled even if nothing selected
20030604 the OK button is enabled even if nothing is selected in the dialog
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
private static int fEntries;
			
		AddDelegateMethodsActionStatusValidator(int entries) {
			fEntries= entries;
		}
		public IStatus validate(Object[] selection) {
			StatusInfo state = new StatusInfo();
			if (selection != null && selection.length > 0) {
				HashSet map = new HashSet(selection.length);
				int count = 0;
				for (int i = 0; i < selection.length; i++) {
					Object key = selection[i];
					if (selection[i] instanceof Methods2Field) {
						count++;
						try {
							key = createSignatureKey(((Methods2Field) selection[i]).fMethod);
						} catch (JavaModelException e) {
							return new StatusInfo(StatusInfo.ERROR, e.toString());
						}
					}
					if (!map.add(key)) { 
						state = new StatusInfo(IStatus.ERROR, ActionMessages.getString("AddDelegateMethodsAction.duplicate_methods")); 
						break;
					} else {
						String message;
						message = ActionMessages.getFormattedString("AddDelegateMethodsAction.selectioninfo.more",