remove deprecated doExecute pycharm/162.608
authorVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Mon, 30 May 2016 13:02:34 +0000 (15:02 +0200)
committerVladimir Krivosheev <vladimir.krivosheev@jetbrains.com>
Mon, 30 May 2016 13:02:34 +0000 (15:02 +0200)
platform/lang-api/src/com/intellij/execution/runners/BaseProgramRunner.java
platform/lang-api/src/com/intellij/execution/runners/GenericProgramRunner.java

index 637729d795ccaecb61ebc5d73220c5802bd53d5a..59bdef85d66c2f996ad356fe99010fb9a5f69e8f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2014 JetBrains s.r.o.
+ * Copyright 2000-2016 JetBrains s.r.o.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import com.intellij.openapi.options.SettingsEditor;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
-abstract class BaseProgramRunner<Settings extends RunnerSettings> implements ProgramRunner<Settings> {
+public abstract class BaseProgramRunner<Settings extends RunnerSettings> implements ProgramRunner<Settings> {
   @Override
   @Nullable
   public Settings createConfigurationData(ConfigurationInfoProvider settingsProvider) {
index 22c17726ef7fde7d3c8a89011936bb18b619c78d..17a4d04e21325b667071d2f41d3191f49239ea7a 100644 (file)
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package com.intellij.execution.runners;
 
 import com.intellij.execution.ExecutionException;
@@ -23,7 +22,6 @@ import com.intellij.execution.configurations.RunProfileState;
 import com.intellij.execution.configurations.RunnerSettings;
 import com.intellij.execution.ui.RunContentDescriptor;
 import com.intellij.openapi.actionSystem.DataKey;
-import com.intellij.openapi.project.Project;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -46,19 +44,5 @@ public abstract class GenericProgramRunner<Settings extends RunnerSettings> exte
   }
 
   @Nullable
-  protected RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException {
-    return doExecute(environment.getProject(), state, environment.getContentToReuse(), environment);
-  }
-
-  /**
-   * @deprecated to remove in IDEA 16
-   */
-  @Deprecated
-  @Nullable
-  protected RunContentDescriptor doExecute(@NotNull Project project,
-                                           @NotNull RunProfileState state,
-                                           @Nullable RunContentDescriptor contentToReuse,
-                                           @NotNull ExecutionEnvironment environment) throws ExecutionException {
-    throw new AbstractMethodError();
-  }
+  protected abstract RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException;
 }