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/GenerateNewConstructorUsingFieldsAction.java
public void selectionChanged(SelectionChangedEvent event) {
				IStructuredSelection selection= (IStructuredSelection) getTreeViewer().getSelection();
				List selectedList= selection.toList();
				GenerateConstructorUsingFieldsContentProvider cp= (GenerateConstructorUsingFieldsContentProvider) getContentProvider();
				fButtonControls[UP_INDEX].setEnabled(cp.canMoveUp(selectedList));
				fButtonControls[DOWN_INDEX].setEnabled(cp.canMoveDown(selectedList));
			}
			public void doubleClick(DoubleClickEvent event) {
				
			}
		}
		public void setOmitSuper(boolean omitSuper) {
			if (fOmitSuper != omitSuper)  {
				fOmitSuper= omitSuper;
				fGenConstructorSettings.put(OMIT_SUPER, omitSuper);
			}	
		}
		public boolean isOmitSuper() {
			return fOmitSuper;
		}
	}
	private static class GenerateConstructorUsingFieldsContentProvider implements ITreeContentProvider {