@Override public boolean performFinish() { if (fNewSettings) { final IDialogSettings settings = RefactoringUIPlugin.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(DIALOG_SETTINGS_KEY); section = settings.addNewSection(DIALOG_SETTINGS_KEY); setDialogSettings(section); } fWizardPage.performFinish(); return true; }
/** Creates a new show refactoring history wizard. */ public ShowRefactoringHistoryWizard() { setNeedsProgressMonitor(false); setWindowTitle(ScriptingMessages.ShowRefactoringHistoryWizard_title); setDefaultPageImageDescriptor(RefactoringPluginImages.DESC_WIZBAN_SHOW_HISTORY); final IDialogSettings settings = RefactoringUIPlugin.getDefault().getDialogSettings(); final IDialogSettings section = settings.getSection(DIALOG_SETTINGS_KEY); if (section == null) fNewSettings = true; else { fNewSettings = false; setDialogSettings(section); } fWizardPage = new ShowRefactoringHistoryWizardPage(this); }