Search in sources :

Example 1 with ErrorStreamDaemon

use of org.eclipse.linuxtools.internal.systemtap.ui.consolelog.structures.ErrorStreamDaemon in project linuxtools by eclipse.

the class ScriptConsole method internalRun.

private void internalRun(IErrorParser errorParser) {
    if (hasStarted()) {
        reset();
    }
    if (errorParser != null) {
        errorDaemon = new ErrorStreamDaemon(this);
    }
    createConsoleDaemon();
    notifyConsoleObservers();
    activate();
    onCmdStartThread = new Thread(onCmdStart);
    onCmdStartThread.start();
}
Also used : ErrorStreamDaemon(org.eclipse.linuxtools.internal.systemtap.ui.consolelog.structures.ErrorStreamDaemon)

Example 2 with ErrorStreamDaemon

use of org.eclipse.linuxtools.internal.systemtap.ui.consolelog.structures.ErrorStreamDaemon in project linuxtools by eclipse.

the class ErrorStreamDaemonTest method setUp.

@Before
public void setUp() {
    StreamGobbler gobbler = new StreamGobbler(System.in);
    gobbler.start();
    daemon = new ErrorStreamDaemon(null);
}
Also used : StreamGobbler(org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler) ErrorStreamDaemon(org.eclipse.linuxtools.internal.systemtap.ui.consolelog.structures.ErrorStreamDaemon) Before(org.junit.Before)

Aggregations

ErrorStreamDaemon (org.eclipse.linuxtools.internal.systemtap.ui.consolelog.structures.ErrorStreamDaemon)2 StreamGobbler (org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler)1 Before (org.junit.Before)1