use of org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessDiedEventDto in project che by eclipse.
the class CommandOutputConsolePresenter method getProcessDiedOperation.
@Override
public Operation<ProcessDiedEventDto> getProcessDiedOperation() {
return new Operation<ProcessDiedEventDto>() {
@Override
public void apply(ProcessDiedEventDto event) throws OperationException {
finished = true;
view.enableStopButton(false);
view.toggleScrollToEndButton(false);
eventBus.fireEvent(new ProcessFinishedEvent(pid));
}
};
}
use of org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessDiedEventDto in project che by eclipse.
the class TestServiceClientTest method processDied.
private ProcessDiedEventDto processDied() {
ProcessDiedEventDto event = mock(ProcessDiedEventDto.class);
when(event.toString()).thenReturn("Died");
return event;
}
Aggregations