allow specifying singleton option when creating a Python script run configuration

This commit is contained in:
Dmitry Jemerov
2012-08-22 10:32:05 +02:00
parent eea6cb3f71
commit 1835d329f0
2 changed files with 11 additions and 2 deletions
@@ -28,7 +28,15 @@ public abstract class PyRunConfigurationFactory {
return ServiceManager.getService(PyRunConfigurationFactory.class);
}
public abstract PythonRunConfigurationParams createPythonScriptRunConfiguration(Module module, String scriptName);
/**
* Creates a run configuration to run a specified Python script.
*
* @param module the module in the context of which the script is run.
* @param scriptName the path to the script file.
* @param singleton if true, the "Check no other instances are running" option will be set for the run configuration.
* @return the settings of the created run configuration.
*/
public abstract PythonRunConfigurationParams createPythonScriptRunConfiguration(Module module, String scriptName, boolean singleton);
public abstract RunnerAndConfigurationSettings createRunConfiguration(Module module, ConfigurationFactory factory);
}