use of com.google.idea.blaze.base.run.confighandler.BlazeCommandGenericRunConfigurationRunner in project intellij by bazelbuild.
the class BlazeCidrRunConfigurationHandler method createRunner.
@Override
public BlazeCommandRunConfigurationRunner createRunner(Executor executor, ExecutionEnvironment environment) {
RunnerAndConfigurationSettings settings = environment.getRunnerAndConfigurationSettings();
RunConfiguration config = settings != null ? settings.getConfiguration() : null;
if (config instanceof BlazeCommandRunConfiguration && RunConfigurationUtils.canUseClionRunner((BlazeCommandRunConfiguration) config)) {
return new BlazeCidrRunConfigurationRunner((BlazeCommandRunConfiguration) config);
}
return new BlazeCommandGenericRunConfigurationRunner();
}
Aggregations