CR-IC-4381#CFR-71852

This commit is contained in:
Vladimir Krivosheev
2014-02-20 14:39:25 +01:00
parent a5f7dd7ff7
commit 90e7243305
3 changed files with 10 additions and 10 deletions
@@ -34,10 +34,10 @@ import org.jetbrains.annotations.Nullable;
*/
public abstract class AsyncGenericProgramRunner<Settings extends RunnerSettings> extends BaseProgramRunner<Settings> {
@Override
protected final void startRunProfile(@NotNull final ExecutionEnvironment environment,
@Nullable final Callback callback,
@NotNull final Project project,
@NotNull final RunProfileState state) throws ExecutionException {
protected final void execute(@NotNull final ExecutionEnvironment environment,
@Nullable final Callback callback,
@NotNull final Project project,
@NotNull final RunProfileState state) throws ExecutionException {
prepare(project, environment, state).doWhenProcessed(new Consumer<RunProfileStarter>() {
@Override
public void consume(@Nullable final RunProfileStarter result) {
@@ -63,13 +63,13 @@ abstract class BaseProgramRunner<Settings extends RunnerSettings> implements Pro
Project project = environment.getProject();
RunManager.getInstance(project).refreshUsagesList(environment.getRunProfile());
startRunProfile(environment, callback, project, state);
execute(environment, callback, project, state);
}
protected abstract void startRunProfile(@NotNull ExecutionEnvironment environment,
@Nullable Callback callback,
@NotNull Project project,
@NotNull RunProfileState state) throws ExecutionException;
protected abstract void execute(@NotNull ExecutionEnvironment environment,
@Nullable Callback callback,
@NotNull Project project,
@NotNull RunProfileState state) throws ExecutionException;
@Nullable
protected static RunContentDescriptor postProcess(@NotNull ExecutionEnvironment environment, @Nullable RunContentDescriptor descriptor, @Nullable Callback callback) {
@@ -36,7 +36,7 @@ public abstract class GenericProgramRunner<Settings extends RunnerSettings> exte
public static final String CONTENT_TO_REUSE = CONTENT_TO_REUSE_DATA_KEY.getName();
@Override
protected void startRunProfile(@NotNull ExecutionEnvironment environment, @Nullable final Callback callback, @NotNull Project project, @NotNull RunProfileState state)
protected void execute(@NotNull ExecutionEnvironment environment, @Nullable final Callback callback, @NotNull Project project, @NotNull RunProfileState state)
throws ExecutionException {
ExecutionManager.getInstance(project).startRunProfile(new RunProfileStarter() {
@Override