mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Added isCancelled() flag to ProcessOutput
This commit is contained in:
@@ -115,6 +115,7 @@ public class CapturingProcessHandler extends OSProcessHandler {
|
||||
if (!isProcessTerminating() && !isProcessTerminated()) {
|
||||
destroyProcess();
|
||||
}
|
||||
myOutput.setCancelled();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ public class ProcessOutput {
|
||||
private final StringBuilder myStderrBuilder = new StringBuilder();
|
||||
private int myExitCode;
|
||||
private boolean myTimeout;
|
||||
private boolean myCancelled;
|
||||
|
||||
public ProcessOutput() {
|
||||
myExitCode = -1; // until set explicitly, exit code denotes an error.
|
||||
@@ -96,4 +97,12 @@ public class ProcessOutput {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isCancelled() {
|
||||
return myCancelled;
|
||||
}
|
||||
|
||||
public void setCancelled() {
|
||||
myCancelled = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user