RunManager API clarified

This commit is contained in:
Anton Makeev
2016-11-03 16:16:57 +01:00
parent 11d76195bd
commit 04daff5a20
2 changed files with 4 additions and 5 deletions
@@ -22,7 +22,6 @@ import com.intellij.execution.configurations.RunProfile;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.util.Function;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -180,12 +179,12 @@ public abstract class RunManager {
* {@link #addConfiguration(RunnerAndConfigurationSettings, boolean)} if you want the configuration to be persisted in the project.
*
* @param name the name of the configuration to create (should be unique and not equal to any other existing configuration)
* @param type the type of the configuration to create.
* @param factory the factory instance.
* @return the configuration settings object.
* @see RunManager#suggestUniqueName(String, Collection)
*/
@NotNull
public abstract RunnerAndConfigurationSettings createRunConfiguration(@NotNull String name, @NotNull ConfigurationFactory type);
public abstract RunnerAndConfigurationSettings createRunConfiguration(@NotNull String name, @NotNull ConfigurationFactory factory);
/**
* Creates a configuration settings object based on a specified {@link RunConfiguration}. Note that you need to call
@@ -1032,8 +1032,8 @@ public class RunManagerImpl extends RunManagerEx implements PersistentStateCompo
@Override
@NotNull
public RunnerAndConfigurationSettings createRunConfiguration(@NotNull String name, @NotNull ConfigurationFactory type) {
return createConfiguration(name, type);
public RunnerAndConfigurationSettings createRunConfiguration(@NotNull String name, @NotNull ConfigurationFactory factory) {
return createConfiguration(name, factory);
}
@Override