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
}
		
		private Composite addSortOrder(Composite composite) {
			Label label= new Label(composite, SWT.NONE);
			label.setText(ActionMessages.getString("GetterSetterTreeSelectionDialog.sort_label")); 
			GridData gd= new GridData(GridData.FILL_BOTH);
			label.setLayoutData(gd);
			final Combo combo= new Combo(composite, SWT.READ_ONLY);
			combo.setItems(new String[]{ActionMessages.getString("GetterSetterTreeSelectionDialog.alpha_pair_sort"), 
										ActionMessages.getString("GetterSetterTreeSelectionDialog.alpha_method_sort")});    
			final int methodIndex= 1;	
			combo.setText(combo.getItem(0));
			gd= new GridData(GridData.FILL_BOTH);
			gd.grabExcessHorizontalSpace= true;
			combo.setLayoutData(gd);
			combo.addSelectionListener(new SelectionAdapter(){
				public void widgetSelected(SelectionEvent e) {
					fSort= (combo.getSelectionIndex() == methodIndex);
				}
			});	
			return composite;
		}
		
		private Composite addVisibilityAndModifiersChoices(Composite buttonComposite) {
			
			IVisibilityChangeListener visibilityChangeListener = new IVisibilityChangeListener(){
				public void visibilityChanged(int newVisibility) {
					fVisibility= newVisibility;
				}
				public void modifierChanged(int modifier, boolean isChecked) {