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/ExtractInterfaceAction.java
} catch (JavaModelException e) {
			ExceptionHandler.handle(e, RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"), RefactoringMessages.getString("OpenRefactoringWizardAction.exception")); 
		}
	}
	
	private IType getSingleSelectedType() throws JavaModelException {
		return RefactoringActions.getEnclosingOrPrimaryType(fEditor);
	}
	
	
	
	private static boolean canRunOn(IType type) throws JavaModelException {
		return ExtractInterfaceRefactoring.isAvailable(type);
	}
		
	private static RefactoringWizard createWizard(ExtractInterfaceRefactoring refactoring){
		return new ExtractInterfaceWizard(refactoring);
	}
	
	private void startRefactoring(IType type) throws JavaModelException {
		ExtractInterfaceRefactoring refactoring= ExtractInterfaceRefactoring.create(type, JavaPreferencesSettings.getCodeGenerationSettings(type.getJavaProject()));
		Assert.isNotNull(refactoring);
		
		if (!ActionUtil.isProcessable(getShell(), refactoring.getInputType()))
			return;
		new RefactoringStarter().activate(refactoring, createWizard(refactoring), getShell(), 
			RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"), true); 
	}
}