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();
}
Aggregations