Bug 38500 getters/setters: very confused by interface fields
20030604 strange things happen when you start generating getters/setters for interface fields: - dialog says you can make them 'private/protected/default' which is incorrect for interface methods (default makes some sense but the others do not) - even if you say 'private' it still generates 'public' - all interface methods are always 'abstract' so 'final' makes no sense - it will never compile -'synchronized' makes no sense either -nor does 'native'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
Collection list= new ArrayList(0);
		Object each= null;
		GetterSetterEntry entry= null;
		for (int i = 0; i < result.length; i++) {
			each= result[i];
			if ((each instanceof GetterSetterEntry)){ 
				entry= (GetterSetterEntry)each;
				if (entry.fGetterEntry) {
					list.add(entry.fField);
				}
			}
		}
		return (IField[]) list.toArray(new IField[list.size()]);			
	}
	
	
	private static IField[] getGetterOnlyFields(Object[] result){
		Collection list= new ArrayList(0);
		Object each= null;
		GetterSetterEntry entry= null;
		boolean getterSet= false;
		for (int i = 0; i < result.length; i++) {
			each= result[i];
			if ((each instanceof GetterSetterEntry)){ 
				entry= (GetterSetterEntry)each;
				if (entry.fGetterEntry) {
					list.add(entry.fField);
					getterSet= true;
				}
				if ((! entry.fGetterEntry) && (getterSet == true)) {