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
}
			IJavaElement element = SelectionConverter.getElementAtOffset(fEditor);
			if (element != null) {
				IType type = (IType) element.getAncestor(IJavaElement.TYPE);
				if (type != null) {
					if (type.getFields().length > 0) {
						run(type, new IField[0], true);
						return;
					}
				}
			}
			MessageDialog.openInformation(getShell(), DIALOG_TITLE, ActionMessages.getString("AddDelegateMethodsAction.not_applicable")); 
		} catch (CoreException e) {
			ExceptionHandler.handle(e, getShell(), DIALOG_TITLE, ActionMessages.getString("AddDelegateMethodsAction.error.actionfailed")); 
		}
	}
	
	private static class AddDelegateMethodsActionStatusValidator implements ISelectionStatusValidator {
		private static int fEntries;
			
		AddDelegateMethodsActionStatusValidator(int entries) {
			fEntries= entries;
		}
		public IStatus validate(Object[] selection) {
			StatusInfo state = new StatusInfo();
			if (selection != null && selection.length > 0) {
				HashSet map = new HashSet(selection.length);
				int count = 0;
				for (int i = 0; i < selection.length; i++) {
					Object key = selection[i];