Bug 38570 Source generation wizards; Add button to open preference page
M1 The Getter/Setter wizard should offer an access to the Code Generation Preference page: Field prefix/suffix, getter/setter body content, method comment template Add delegate, constructor and override could have a button for the method comment template The code to open a preference page programatically can be copied from TodoTaskPropertyPage.showPreferencePage
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateNewConstructorUsingFieldsAction.java
if (selection[i] instanceof IField)
					count++;
			}
			return count;
		}
		private List getExistingConstructorSignatures() {
			List constructorMethods= new ArrayList();
			try {
				IMethod[] methods= fType.getMethods();
				for (int i= 0; i < methods.length; i++) {
					IMethod curr= methods[i];
					if (curr.isConstructor()) {
						constructorMethods.add(curr.getSignature());
					}
				}
			} catch (JavaModelException e) {
			}
			return constructorMethods;
		}
	}
	private static class GenerateConstructorUsingFieldsSelectionDialog extends SourceActionDialog {
		private int fSuperIndex;
		private int fWidth= 60;
		private int fHeight= 18;
		protected Button[] fButtonControls;
		private boolean[] fButtonsEnabled;
		private boolean fOmitSuper;
		private IMethod[] fSuperConstructors;
		private IDialogSettings fGenConstructorSettings;
		private GenerateConstructorUsingFieldsTreeViewerAdapter fTreeViewerAdapter;