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/internal/ui/preferences/CodeTemplateBlock.java
CodeTemplateAdapter adapter= new CodeTemplateAdapter();
		String[] buttonLabels= new String[] { 
			 PreferencesMessages.getString("CodeTemplateBlock.templates.edit.button"),	
			 null,  
			 PreferencesMessages.getString("CodeTemplateBlock.templates.import.button"), 
			 PreferencesMessages.getString("CodeTemplateBlock.templates.export.button"), 
			 PreferencesMessages.getString("CodeTemplateBlock.templates.exportall.button") 
		};		
		fCodeTemplateTree= new TreeListDialogField(adapter, buttonLabels, new CodeTemplateLabelProvider());
		fCodeTemplateTree.setDialogFieldListener(adapter);
		fCodeTemplateTree.setLabelText(PreferencesMessages.getString("CodeTemplateBlock.templates.label")); 
		fCodeTemplateTree.enableButton(IDX_EXPORT, false);
		fCodeTemplateTree.enableButton(IDX_EDIT, false);
		
		fCodeTemplateTree.addElement(COMMENT_NODE);
		fCodeTemplateTree.addElement(CODE_NODE);
		
		fCreateJavaDocComments= new SelectionButtonDialogField(SWT.CHECK | SWT.WRAP);
		fCreateJavaDocComments.setLabelText(PreferencesMessages.getString("CodeTemplateBlock.createcomment.label")); 
		IJavaProject javaProject= project != null ? JavaCore.create(project) : null;
		boolean createComments= Boolean.valueOf(PreferenceConstants.getPreference(PREF_JAVADOC_STUBS, javaProject)).booleanValue();
		fCreateJavaDocComments.setSelection(createComments);
		
		fCodeTemplateTree.selectFirstElement();	
	}
	
	public boolean hasProjectSpecificOptions() {
		TemplatePersistenceData[] templateData= fTemplateStore.getTemplateData();
		for (int i= 0; i < templateData.length; i++) {