Search in sources :

Example 1 with SuspendActionDto

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);
        }
    });
}
Also used : JsPromiseError(org.eclipse.che.api.promises.client.js.JsPromiseError) PromiseError(org.eclipse.che.api.promises.client.PromiseError) SuspendActionDto(org.eclipse.che.api.debug.shared.dto.action.SuspendActionDto) OperationException(org.eclipse.che.api.promises.client.OperationException)

Aggregations

SuspendActionDto (org.eclipse.che.api.debug.shared.dto.action.SuspendActionDto)1 OperationException (org.eclipse.che.api.promises.client.OperationException)1 PromiseError (org.eclipse.che.api.promises.client.PromiseError)1 JsPromiseError (org.eclipse.che.api.promises.client.js.JsPromiseError)1