use of com.android.tools.idea.ui.validation.validators.FalseValidator in project android by JetBrains.
the class InstallSelectedPackagesStep method onWizardStarting.
@Override
protected void onWizardStarting(@NotNull ModelWizard.Facade wizard) {
// This will show a warning to the user once installation starts and will disable the next/finish button until installation finishes
String finishedText = "Please wait until the installation finishes";
myValidatorPanel.registerValidator(myInstallationFinished, new TrueValidator(Validator.Severity.INFO, finishedText));
String installError = "Installation did not complete successfully. See the IDE log for details";
myValidatorPanel.registerValidator(myInstallFailed, new FalseValidator(installError));
myBackgroundAction.setWizard(wizard);
}
Aggregations