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/AddGetterSetterAction.java
super(parent, labelProvider, contentProvider, editor, type, false);
			fContentProvider= contentProvider;
			
			
			IDialogSettings dialogSettings= JavaPlugin.getDefault().getDialogSettings();
			fSettings= dialogSettings.getSection(SETTINGS_SECTION);
			if (fSettings == null) {
				fSettings= dialogSettings.addNewSection(SETTINGS_SECTION);
				fSettings.put(SORT_ORDER, false); 
			}			
			 
			fSortOrder= fSettings.getBoolean(SORT_ORDER);
		}
		
		public boolean getSortOrder() {
			return fSortOrder;
		}				
		public void setSortOrder(boolean sort)  {
			if (fSortOrder != sort)  {
				fSortOrder= sort;
				fSettings.put(SORT_ORDER, sort);
				if (fContentProvider.fViewer != null)  {
					fContentProvider.fViewer.refresh();
				}
			}
		}
				
		private void createGetterSetterButtons(Composite buttonComposite) {
			createButton(buttonComposite, SELECT_GETTERS_ID, ActionMessages.getString("GetterSetterTreeSelectionDialog.select_getters"), false); 	
			createButton(buttonComposite, SELECT_SETTERS_ID, ActionMessages.getString("GetterSetterTreeSelectionDialog.select_setters"), false);