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/AddDelegateMethodsAction.java
return;
				ArrayList methods = new ArrayList(o.length);
				for (int i = 0; i < o.length; i++) {
					if (o[i] instanceof Methods2Field)
						methods.add(o[i]);
				}
				IEditorPart part = EditorUtility.openInEditor(type);
				
				IRewriteTarget target= (IRewriteTarget) part.getAdapter(IRewriteTarget.class);
				IMethod[] createdMethods= null;
				try {
					if (target != null) {
						target.beginCompoundChange();
					}
					 
					IJavaElement elementPosition= dialog.getElementPosition();
						
					CodeGenerationSettings settings = JavaPreferencesSettings.getCodeGenerationSettings(type.getJavaProject());
					settings.createComments= dialog.getGenerateComment();										
					createdMethods= processResults(methods, type, elementPosition, settings);
				} finally {
					if (target != null) {
						target.endCompoundChange();
					}
				}
				
				if (createdMethods != null && createdMethods.length > 0) {
					JavaModelUtil.reconcile(type.getCompilationUnit());
					EditorUtility.revealInEditor(part, createdMethods[0]);
				}