use of org.eclipse.che.api.debug.shared.dto.action.SuspendActionDto in project che by eclipse.
the class AbstractDebugger method suspend.
@Override
public void suspend() {
if (!isConnected()) {
return;
}
SuspendActionDto suspendAction = dtoFactory.createDto(SuspendActionDto.class);
suspendAction.setType(Action.TYPE.SUSPEND);
service.suspend(debugSessionDto.getId(), suspendAction).catchError(new Operation<PromiseError>() {
@Override
public void apply(PromiseError arg) throws OperationException {
notificationManager.notify(arg.getMessage(), FAIL, FLOAT_MODE);
}
});
}
Aggregations