run manager: respected passed RunnerAndConfigurationSettings instance
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 14 Aug 2015 13:03:48 +0000 (16:03 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 14 Aug 2015 13:03:48 +0000 (16:03 +0300)
platform/lang-api/src/com/intellij/execution/runners/ExecutionEnvironment.java

index 0c0fea0b9e86889d01e4cd93b8e9c625ced8f441..7ab0bbbbfd0de8bd1adc79a125e3c9c75875adc5 100644 (file)
@@ -66,16 +66,16 @@ public class ExecutionEnvironment extends UserDataHolderBase implements Disposab
 
   public ExecutionEnvironment(@NotNull Executor executor,
                               @NotNull ProgramRunner runner,
-                              @NotNull RunnerAndConfigurationSettings configuration,
+                              @NotNull RunnerAndConfigurationSettings settings,
                               @NotNull Project project) {
-    this(configuration.getConfiguration(),
+    this(settings.getConfiguration(),
          executor,
          DefaultExecutionTarget.INSTANCE,
          project,
-         configuration.getRunnerSettings(runner),
-         configuration.getConfigurationSettings(runner),
-         null,
+         settings.getRunnerSettings(runner),
+         settings.getConfigurationSettings(runner),
          null,
+         settings,
          runner);
   }