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
private void showUI(IType type, IField[] preselected) {
		try {
			AddDelegateMethodsContentProvider provider = new AddDelegateMethodsContentProvider(type);
			Methods2FieldLabelProvider methodLabel = new Methods2FieldLabelProvider();
			SourceActionDialog dialog = new SourceActionDialog(getShell(), methodLabel, provider, fEditor, type, false);			
			dialog.setValidator(createValidator(provider.getNumEntries()));
			Methods2FieldSorter sorter= new Methods2FieldSorter();
			dialog.setSorter(sorter);
			dialog.setInput(new Object());			
			dialog.setContainerMode(true);
			dialog.setMessage(ActionMessages.getString("AddDelegateMethodsAction.message")); 
			dialog.setTitle(ActionMessages.getString("AddDelegateMethodsAction.title")); 
			
			if (preselected.length > 0) {
				dialog.setExpandedElements(preselected);
			} else {
				Object[] elements= provider.getElements(null);
				if (elements.length > 0) {
					sorter.sort(null, elements);
					Object[] expand= {elements[0]};
					dialog.setExpandedElements(expand);
				}
			}
			dialog.setInitialSelections(preselected);
			dialog.setSize(60, 18);
			int result = dialog.open();
			if (result == Window.OK) {
				Object[] o = dialog.getResult();
				if (o == null)