use of com.android.tools.idea.sdk.wizard.legacy.LicenseAgreementStep in project android by JetBrains.
the class ConfigureAndroidProjectPath method init.
@Override
protected void init() {
putSdkDependentParams(myState);
addStep(new ConfigureAndroidProjectStep(myParentDisposable));
addStep(new ConfigureFormFactorStep(myParentDisposable));
addStep(new LicenseAgreementStep(myParentDisposable));
addStep(new SmwOldApiDirectInstall(myParentDisposable));
}
use of com.android.tools.idea.sdk.wizard.legacy.LicenseAgreementStep in project android by JetBrains.
the class FirstRunWizard method init.
@Override
public void init() {
File initialSdkLocation = FirstRunWizardDefaults.getInitialSdkLocation(myMode);
ConsolidatedProgressStep progressStep = new FirstRunProgressStep();
myComponentsPath = new InstallComponentsPath(myMode, initialSdkLocation, progressStep, true);
if (myMode == FirstRunWizardMode.NEW_INSTALL) {
boolean sdkExists = false;
if (initialSdkLocation.isDirectory()) {
AndroidSdkHandler sdkHandler = AndroidSdkHandler.getInstance(initialSdkLocation);
ProgressIndicator progress = new StudioLoggerProgressIndicator(getClass());
sdkExists = ((AndroidSdkHandler) sdkHandler).getLocalPackage(SdkConstants.FD_TOOLS, progress) != null;
}
addPath(new SingleStepPath(new FirstRunWelcomeStep(sdkExists)));
}
if (myMode == FirstRunWizardMode.NEW_INSTALL) {
if (initialSdkLocation.getPath().isEmpty()) {
// We don't have a default path specified, have to do custom install.
myState.put(KEY_CUSTOM_INSTALL, true);
} else {
addPath(new SingleStepPath(new InstallationTypeWizardStep(KEY_CUSTOM_INSTALL)));
}
addPath(new SingleStepPath(new SelectThemeStep(KEY_CUSTOM_INSTALL)));
}
if (myMode == FirstRunWizardMode.MISSING_SDK) {
addPath(new SingleStepPath(new MissingSdkAlertStep()));
}
addPath(myComponentsPath);
if (SystemInfo.isLinux && myMode == FirstRunWizardMode.NEW_INSTALL) {
addPath(new SingleStepPath(new LinuxHaxmInfoStep()));
}
if (myMode != FirstRunWizardMode.INSTALL_HANDOFF) {
addPath(new SingleStepPath(new LicenseAgreementStep(getDisposable())));
}
addPath(new SingleStepPath(progressStep));
super.init();
}
Aggregations