Correct launch python processes in case of PTY.

This commit is contained in:
Dmitry Trofimov
2014-12-17 17:46:50 +01:00
parent 83c364f21e
commit 6dd062858e
3 changed files with 8 additions and 12 deletions
@@ -38,7 +38,7 @@ public class KillableColoredProcessHandler extends ColoredProcessHandler impleme
private boolean myShouldKillProcessSoftly = true;
public KillableColoredProcessHandler(GeneralCommandLine commandLine) throws ExecutionException {
public KillableColoredProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException {
super(commandLine);
}
@@ -23,8 +23,8 @@ import org.jetbrains.annotations.NotNull;
* @author traff
*/
public class JythonProcessHandler extends PythonProcessHandler {
private JythonProcessHandler(@NotNull Process process, @NotNull GeneralCommandLine commandLine) {
super(process, commandLine);
private JythonProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException {
super(commandLine);
}
@Override
@@ -36,8 +36,6 @@ public class JythonProcessHandler extends PythonProcessHandler {
public static JythonProcessHandler createProcessHandler(GeneralCommandLine commandLine)
throws ExecutionException {
Process p = commandLine.createProcess();
return new JythonProcessHandler(p, commandLine);
return new JythonProcessHandler(commandLine);
}
}
@@ -26,8 +26,8 @@ import java.nio.charset.Charset;
* @author traff
*/
public class PythonProcessHandler extends KillableColoredProcessHandler {
protected PythonProcessHandler(@NotNull Process process, @NotNull GeneralCommandLine commandLine) {
super(process, commandLine.getCommandLineString());
protected PythonProcessHandler(@NotNull GeneralCommandLine commandLine) throws ExecutionException {
super(commandLine);
}
public PythonProcessHandler(Process process, String commandLine, @NotNull Charset charset) {
@@ -39,11 +39,9 @@ public class PythonProcessHandler extends KillableColoredProcessHandler {
return true;
}
public static PythonProcessHandler createProcessHandler(GeneralCommandLine commandLine)
public static PythonProcessHandler createProcessHandler(@NotNull GeneralCommandLine commandLine)
throws ExecutionException {
Process p = commandLine.createProcess();
return new PythonProcessHandler(p, commandLine);
return new PythonProcessHandler(commandLine);
}
}