diff options
Diffstat (limited to 'platform/lang-api/src/com/intellij/execution/RunProfileStarter.java')
-rw-r--r-- | platform/lang-api/src/com/intellij/execution/RunProfileStarter.java | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/platform/lang-api/src/com/intellij/execution/RunProfileStarter.java b/platform/lang-api/src/com/intellij/execution/RunProfileStarter.java index 163031f956f9..00c87576ecfd 100644 --- a/platform/lang-api/src/com/intellij/execution/RunProfileStarter.java +++ b/platform/lang-api/src/com/intellij/execution/RunProfileStarter.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2010 JetBrains s.r.o. + * Copyright 2000-2014 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. @@ -28,8 +28,19 @@ import org.jetbrains.annotations.Nullable; * @author nik */ public abstract class RunProfileStarter { + @SuppressWarnings("UnusedParameters") + @Deprecated @Nullable - public abstract RunContentDescriptor execute(@NotNull Project project, @NotNull Executor executor, @NotNull RunProfileState state, - @Nullable RunContentDescriptor contentToReuse, @NotNull ExecutionEnvironment environment) throws ExecutionException; + /** + * @deprecated to remove in IDEA 15 + */ + public RunContentDescriptor execute(@NotNull Project project, @NotNull Executor executor, @NotNull RunProfileState state, + @Nullable RunContentDescriptor contentToReuse, @NotNull ExecutionEnvironment environment) throws ExecutionException { + return execute(state, environment); + } + @Nullable + public RunContentDescriptor execute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment environment) throws ExecutionException { + throw new AbstractMethodError(); + } } |