use of org.eclipse.che.ide.extension.machine.client.processes.ProcessFinishedEvent 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.ide.extension.machine.client.processes.ProcessFinishedEvent in project che by eclipse.
the class ProcessesPanelPresenterTest method stopButtonShouldBeHiddenWhenProcessFinished.
@Test
public void stopButtonShouldBeHiddenWhenProcessFinished() {
when(outputConsole.isFinished()).thenReturn(true);
presenter.consoles.put(PROCESS_ID, outputConsole);
presenter.onProcessFinished(new ProcessFinishedEvent(PID));
verify(view).setStopButtonVisibility(PROCESS_ID, false);
}
Aggregations