void (boolean lastStep, boolean canGoNext, boolean firstStep) { if (lastStep) { if (mySteps.size() > 1) { myNextButton.setText(UIUtil.removeMnemonic(IdeBundle.message(isNewWizard() ? "button.create" : "button.finish"))); myNextButton.setMnemonic(isNewWizard() ? KeyEvent.VK_C : KeyEvent.VK_F); } else { myNextButton.setText(IdeBundle.message("button.ok")); } } else { myNextButton.setText(UIUtil.removeMnemonic(IdeBundle.message("button.wizard.next"))); myNextButton.setMnemonic(KeyEvent.VK_N); } myNextButton.setEnabled(canGoNext); if (myNextButton.isEnabled() && !ApplicationManager.getApplication().isUnitTestMode() && getRootPane() != null) { getRootPane().setDefaultButton(myNextButton); } myPreviousButton.setEnabled(!firstStep); if (isNewWizard()) { myPreviousButton.setVisible(!firstStep); } }