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 (!constuctorFound)  {
				IType objectType= type.getJavaProject().findType("java.lang.Object"); 
				IMethod curr= objectType.getMethod("Object", new String[0]);  
				constructorMethods.add(curr);
			}
		}
		return (IMethod[]) constructorMethods.toArray(new IMethod[constructorMethods.size()]);
	}
	
	private static ISelectionStatusValidator createValidator(int entries, GenerateConstructorUsingFieldsSelectionDialog dialog, IType type) {
		GenerateConstructorUsingFieldsValidator validator= new GenerateConstructorUsingFieldsValidator(entries, dialog, type);
		return validator;
	}
	private static class GenerateConstructorUsingFieldsValidator implements ISelectionStatusValidator {
		private static int fEntries;
		private IType fType;
		private GenerateConstructorUsingFieldsSelectionDialog fDialog;
		List fExistingSigs;
		GenerateConstructorUsingFieldsValidator(int entries) {
			super();
			fEntries= entries;
			fType= null;
		}
		GenerateConstructorUsingFieldsValidator(int entries, GenerateConstructorUsingFieldsSelectionDialog dialog, IType type) {
			super();
			fEntries= entries;
			fDialog= dialog;
			fType= type;
				
			fExistingSigs= getExistingConstructorSignatures();