public RefactoringWizardDialog2(Shell shell, RefactoringWizard wizard) { super(shell); Assert.isNotNull(wizard); setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX); IDialogSettings settings= wizard.getDialogSettings(); if (settings == null) { settings= RefactoringUIPlugin.getDefault().getDialogSettings(); wizard.setDialogSettings(settings); } fWizard= wizard; fWizard.setContainer(this); fWizard.addPages(); initSize(settings); fHasAdditionalPages= wizard.getPageCount() > 3; }