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
}
			return numEntries;
		}
		public Object[] getChildren(Object parentElement) {
			if (parentElement instanceof IField) {
				return (Object[]) fTreeMap.get(((IField) parentElement).getElementName());
			}
			return null;
		}
		public Object getParent(Object element) {
			return null;
		}
		public boolean hasChildren(Object element) {
			return element instanceof IField;
		}
		public Object[] getElements(Object inputElement) {
			Object[] o = fTreeMap.keySet().toArray();
			Object[] fields = new Object[o.length];
			for (int i = 0; i < o.length; i++) {
				fields[i] = fFieldMap.get(o[i]);
			}
			return fields;
		}
		public void dispose() {
		}
		public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		}
	}
	
	private static class Methods2FieldLabelProvider implements ILabelProvider {