private void maybeAnchorExecutionLine() { PathUtil callFramePath = debuggerState.getActiveCallFramePath(); if (callFramePath != null && callFramePath.equals(path)) { int lineNumber = debuggerState.getActiveCallFrameExecutionLineNumber(); if (lineNumber >= 0) { debuggingModelRenderer.renderExecutionLine(lineNumber); } } }
private void maybeNavigateToDocument(PathUtil documentPath, int lineNumber) { if (documentPath.equals(this.path)) { editor.getFocusManager().focus(); editor.scrollTo(lineNumber, 0); } else { currentPlace.fireChildPlaceNavigation( FileSelectedPlace.PLACE.createNavigationEvent(documentPath, lineNumber)); } }
private void anchorBreakpoints() { JsonArray<Breakpoint> allBreakpoints = debuggingModel.getBreakpoints(); for (int i = 0; i < allBreakpoints.size(); ++i) { Breakpoint breakpoint = allBreakpoints.get(i); if (path.equals(breakpoint.getPath())) { anchorBreakpointAndUpdateSidebar(breakpoint); debuggingModelRenderer.renderBreakpointOnGutter( breakpoint.getLineNumber(), breakpoint.isActive()); } } }
private boolean shouldProcessBreakpoint(Breakpoint breakpoint) { return path != null && path.equals(breakpoint.getPath()); }