コード例 #1
0
  private void update(@NotNull List<BreakpointWithHighlighter> breakpoints) {
    final TIntHashSet intHash = new TIntHashSet();
    for (BreakpointWithHighlighter breakpoint : breakpoints) {
      SourcePosition sourcePosition = breakpoint.getSourcePosition();
      breakpoint.reload();

      if (breakpoint.isValid()) {
        if (sourcePosition == null
            || breakpoint.getSourcePosition().getLine() != sourcePosition.getLine()) {
          fireBreakpointChanged(breakpoint);
        }

        if (intHash.contains(breakpoint.getLineIndex())) {
          remove(breakpoint);
        } else {
          intHash.add(breakpoint.getLineIndex());
        }
      } else {
        remove(breakpoint);
      }
    }
  }
コード例 #2
0
 @Override
 protected void createOrWaitPrepare(DebugProcessImpl debugProcess, String classToBeLoaded) {
   if (isInScopeOf(debugProcess, classToBeLoaded)) {
     super.createOrWaitPrepare(debugProcess, classToBeLoaded);
   }
 }
コード例 #3
0
 protected void reload(PsiFile file) {
   super.reload(file);
   myMethodName = findMethodName(file, getHighlighter().getStartOffset());
 }