public void setDocument(Document document, PathUtil path, DocumentParser parser) { if (breakpoints != null) { breakpoints.teardown(); debuggingModelRenderer.handleDocumentChanged(); } this.path = path; breakpoints = new AnchoredBreakpoints(debuggingModel, document); anchorBreakpoints(); maybeAnchorExecutionLine(); evaluationPopupController.setDocument(document, path, parser); breakpoints.setBreakpointDescriptionListener(breakpointDescriptionListener); }