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/dialogs/OverrideMethodDialog.java
} else {
				return super.compare(viewer, e1, e2);
			}
		}
	}
	
	private static class OverrideMethodValidator implements ISelectionStatusValidator {
		private static int fNumMethods;
			
		public OverrideMethodValidator(int entries) {
			super();
			fNumMethods= entries;
		}		
			
		/*
		 * @see ISelectionValidator#validate(Object[])
		 */
		public IStatus validate(Object[] selection) {
			int count= 0;
			for (int i= 0; i < selection.length; i++) {
				if (selection[i] instanceof IMethod) {
					count++;
				}
			}
			if (count == 0) {
				return new StatusInfo(IStatus.ERROR, ""); 
			}
			String[] args= { String.valueOf(count), String.valueOf(fNumMethods)};
			String message= JavaUIMessages.getFormattedString("OverrideMethodDialog.selectioninfo.more", args); 
			return new StatusInfo(IStatus.INFO, message);