Search in sources :

Example 1 with BreakpointActivatedEventDto

use of org.eclipse.che.api.debug.shared.dto.event.BreakpointActivatedEventDto in project che by eclipse.

the class AbstractDebugger method onEventListReceived.

private void onEventListReceived(@NotNull DebuggerEventDto event) {
    LocationDto newLocationDto;
    switch(event.getType()) {
        case SUSPEND:
            newLocationDto = ((SuspendEventDto) event).getLocation();
            break;
        case BREAKPOINT_ACTIVATED:
            BreakpointDto breakpointDto = ((BreakpointActivatedEventDto) event).getBreakpoint();
            onBreakpointActivated(breakpointDto.getLocation());
            return;
        case DISCONNECT:
            disconnect();
            return;
        default:
            Log.error(AbstractDebugger.class, "Unknown debuggerType of debugger event: " + event.getType());
            return;
    }
    if (newLocationDto != null) {
        currentLocation = newLocationDto;
        openCurrentFile();
    }
    preserveDebuggerState();
}
Also used : BreakpointDto(org.eclipse.che.api.debug.shared.dto.BreakpointDto) BreakpointActivatedEventDto(org.eclipse.che.api.debug.shared.dto.event.BreakpointActivatedEventDto) LocationDto(org.eclipse.che.api.debug.shared.dto.LocationDto)

Aggregations

BreakpointDto (org.eclipse.che.api.debug.shared.dto.BreakpointDto)1 LocationDto (org.eclipse.che.api.debug.shared.dto.LocationDto)1 BreakpointActivatedEventDto (org.eclipse.che.api.debug.shared.dto.event.BreakpointActivatedEventDto)1