Search in sources :

Example 1 with ProcessDiedEventDto

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));
        }
    };
}
Also used : ProcessFinishedEvent(org.eclipse.che.ide.extension.machine.client.processes.ProcessFinishedEvent) Operation(org.eclipse.che.api.promises.client.Operation) ProcessDiedEventDto(org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessDiedEventDto)

Example 2 with ProcessDiedEventDto

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;
}
Also used : ProcessDiedEventDto(org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessDiedEventDto)

Aggregations

ProcessDiedEventDto (org.eclipse.che.api.machine.shared.dto.execagent.event.ProcessDiedEventDto)2 Operation (org.eclipse.che.api.promises.client.Operation)1 ProcessFinishedEvent (org.eclipse.che.ide.extension.machine.client.processes.ProcessFinishedEvent)1