コード例 #1
0
 private void maybeAnchorExecutionLine() {
   PathUtil callFramePath = debuggerState.getActiveCallFramePath();
   if (callFramePath != null && callFramePath.equals(path)) {
     int lineNumber = debuggerState.getActiveCallFrameExecutionLineNumber();
     if (lineNumber >= 0) {
       debuggingModelRenderer.renderExecutionLine(lineNumber);
     }
   }
 }
コード例 #2
0
 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));
   }
 }
コード例 #3
0
 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());
     }
   }
 }
コード例 #4
0
 private boolean shouldProcessBreakpoint(Breakpoint breakpoint) {
   return path != null && path.equals(breakpoint.getPath());
 }