public RefactoringWizardDialog2(Shell shell, RefactoringWizard wizard) { super(shell); Assert.isNotNull(wizard); IDialogSettings settings = wizard.getDialogSettings(); if (settings == null) { settings = RefactoringUIPlugin.getDefault().getDialogSettings(); wizard.setDialogSettings(settings); } setHelpAvailable((wizard.getWizardFlags() & RefactoringWizard.SHOW_HELP_CONTROL) != 0); fWizard = wizard; fWizard.setContainer(this); fWizard.addPages(); initSize(settings); fHasAdditionalPages = wizard.getPageCount() > 3; }