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
public void addListener(ILabelProviderListener listener) {
			fMethodLabel.addListener(listener);
		}
		public void dispose() {
			fMethodLabel.dispose();
		}
		public boolean isLabelProperty(Object element, String property) {
			return fMethodLabel.isLabelProperty(element, property);
		}
		public void removeListener(ILabelProviderListener listener) {
			fMethodLabel.removeListener(listener);
		}
	}
	
	private static class Methods2FieldSorter extends ViewerSorter {
		JavaElementSorter fSorter = new JavaElementSorter();
		public int category(Object element) {
			if (element instanceof Methods2Field)
				element = ((Methods2Field) element).method;
			return fSorter.category(element);
		}
		public int compare(Viewer viewer, Object e1, Object e2) {
			if (e1 instanceof Methods2Field)
				e1 = ((Methods2Field) e1).method;
			if (e2 instanceof Methods2Field)
				e2 = ((Methods2Field) e2).method;
			return fSorter.compare(viewer, e1, e2);
		}
		public Collator getCollator() {
			return fSorter.getCollator();