mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 17:03:12 +07:00
(no message)
This commit is contained in:
@@ -172,7 +172,7 @@ public class OSProcessHandler extends ProcessHandler {
|
||||
private boolean myIsClosed = false;
|
||||
|
||||
public ReadProcessThread(final Reader reader) {
|
||||
LOG.assertTrue(reader != null);
|
||||
super("ReadProcessThread "+reader.getClass().getName());
|
||||
setPriority(Thread.MAX_PRIORITY);
|
||||
myReader = reader;
|
||||
myAlarm = new Alarm(Alarm.ThreadToUse.SHARED_THREAD);
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.intellij.execution.process.ProcessEvent;
|
||||
import com.intellij.execution.process.ProcessHandler;
|
||||
import com.intellij.execution.ui.ConsoleViewContentType;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
@@ -39,11 +38,7 @@ public abstract class ConsoleState {
|
||||
private final ConsoleViewImpl myConsole;
|
||||
private final ProcessAdapter myProcessListener = new ProcessAdapter() {
|
||||
public void onTextAvailable(final ProcessEvent event, final Key outputType) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
myConsole.print(event.getText(), ConsoleViewContentType.getConsoleViewType(outputType));
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
private final ProcessHandler myProcessHandler;
|
||||
|
||||
Reference in New Issue
Block a user