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 Map fTreeMap= null;
		private Map fFieldMap= null;
		private Map fFilter= null;
		private int fNumEntries;
		/**
		 * Method FieldContentProvider.
		 * @param type	outer type to insert in (hide final methods in tree))
		 */
		AddDelegateMethodsContentProvider(IType type) throws JavaModelException {
			fFilter= new HashMap();				
			fTreeMap= new TreeMap();			
			fFieldMap= new HashMap();			
			fNumEntries= buildModel(type);
		}
		
		public int getNumEntries() {
			return fNumEntries;
		}
		
		private int buildModel(IType type) throws JavaModelException {
			int numEntries= 0;
			IField[] fields = type.getFields();
			
			IMethod[] finMeths = resolveFinalMethods(type);