IDEA-153028 New Project Wizard: if no Android SDK is configured, after opening Android wizard "Ne...

This commit is contained in:
Dmitry Avdeev
2016-03-15 20:34:27 +03:00
parent ed3cc6d1af
commit abe9e7f10d
2 changed files with 6 additions and 0 deletions
@@ -652,6 +652,7 @@ public class ProjectTypeStep extends ModuleWizardStep implements SettingsStep, D
myWizard.getSequence().setType(builder.getBuilderId());
}
myWizard.setDelegate(builder instanceof WizardDelegate ? (WizardDelegate)builder : null);
myWizard.updateWizardButtons();
}
@TestOnly
@@ -477,6 +477,11 @@ public abstract class AbstractWizard<T extends Step> extends DialogWrapper {
updateButtons(lastStep, lastStep ? canFinish() : canGoNext(), isFirstStep());
}
public void updateWizardButtons() {
if (!mySteps.isEmpty())
updateButtons();
}
public void updateButtons(boolean lastStep, boolean canGoNext, boolean firstStep) {
if (lastStep) {
if (mySteps.size() > 1) {