mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Correct launch python processes in case of PTY.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user