use of com.google.idea.blaze.base.run.state.RunConfigurationState in project intellij by bazelbuild.
the class BlazeAndroidBinaryRunConfigurationHandler method doMigrate.
private int doMigrate(Project project) {
int count = 0;
for (RunConfiguration runConfig : RunManager.getInstance(project).getConfigurationsList(BlazeCommandRunConfigurationType.getInstance())) {
if (runConfig instanceof BlazeCommandRunConfiguration) {
RunConfigurationState state = ((BlazeCommandRunConfiguration) runConfig).getHandler().getState();
if (state instanceof BlazeAndroidBinaryRunConfigurationState) {
((BlazeAndroidBinaryRunConfigurationState) state).setLaunchMethod(AndroidBinaryLaunchMethod.MOBILE_INSTALL);
count++;
}
}
}
return count;
}
Aggregations