Bug 44181 Source->delegate works only for public methods [code manipulation]
Hi, Generate Delegate methods display only public methods for target class. For classes in the same package also default and protected methods should be shown. And for subclasses in other packages protected should be shown (I think more for completeness than for usefulness). Bye
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);