Bug 38491 source generation actions: should be available on most cus
20020604 it should be available on compilation units that have 1 type or more than 1 type if 1 of the types is the primary type some 99% of all cus known to man belong to that category
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddGetterSetterAction.java
return result.toArray();
		}
		private GetterSetterEntry[] getEntries(IField field) {
			List result= Arrays.asList(fContentProvider.getChildren(field));
			return (GetterSetterEntry[]) result.toArray(new GetterSetterEntry[result.size()]);
		}
		
		protected Composite createSelectionButtons(Composite composite) {
			Composite buttonComposite= super.createSelectionButtons(composite);
			GridLayout layout = new GridLayout();
			buttonComposite.setLayout(layout);						
			createGetterSetterButtons(buttonComposite);
			
			layout.marginHeight= 0;
			layout.marginWidth= 0;						
			layout.numColumns= 1;
			
			return buttonComposite;
		}	
	}
	private static class GetterSetterEntry {
		public final IField fField;
		public final boolean fGetterEntry;
		GetterSetterEntry(IField field, boolean isGetterEntry){
			fField= field;
			fGetterEntry= isGetterEntry;
		}
	}
}