Search in sources :

Example 1 with BlazeCommandGenericRunConfigurationRunner

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();
}
Also used : RunConfiguration(com.intellij.execution.configurations.RunConfiguration) BlazeCommandRunConfiguration(com.google.idea.blaze.base.run.BlazeCommandRunConfiguration) RunnerAndConfigurationSettings(com.intellij.execution.RunnerAndConfigurationSettings) BlazeCommandRunConfiguration(com.google.idea.blaze.base.run.BlazeCommandRunConfiguration) BlazeCommandGenericRunConfigurationRunner(com.google.idea.blaze.base.run.confighandler.BlazeCommandGenericRunConfigurationRunner)

Aggregations

BlazeCommandRunConfiguration (com.google.idea.blaze.base.run.BlazeCommandRunConfiguration)1 BlazeCommandGenericRunConfigurationRunner (com.google.idea.blaze.base.run.confighandler.BlazeCommandGenericRunConfigurationRunner)1 RunnerAndConfigurationSettings (com.intellij.execution.RunnerAndConfigurationSettings)1 RunConfiguration (com.intellij.execution.configurations.RunConfiguration)1