Search in sources :

Example 1 with FalseValidator

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);
}
Also used : TrueValidator(com.android.tools.idea.ui.validation.validators.TrueValidator) FalseValidator(com.android.tools.idea.ui.validation.validators.FalseValidator)

Aggregations

FalseValidator (com.android.tools.idea.ui.validation.validators.FalseValidator)1 TrueValidator (com.android.tools.idea.ui.validation.validators.TrueValidator)1