コード例 #1
0
  protected static LineBreakpoint create(Project project, Document document, int lineIndex) {
    VirtualFile virtualFile = FileDocumentManager.getInstance().getFile(document);
    if (virtualFile == null) {
      return null;
    }

    final RangeHighlighter highlighter = createHighlighter(project, document, lineIndex);
    if (highlighter == null) {
      return null;
    }

    LineBreakpoint breakpoint = new LineBreakpoint(project, highlighter);
    return (LineBreakpoint) breakpoint.init();
  }
コード例 #2
0
 public static LineBreakpoint create(@NotNull Project project, XBreakpoint xBreakpoint) {
   LineBreakpoint breakpoint = new LineBreakpoint(project, xBreakpoint);
   return (LineBreakpoint) breakpoint.init();
 }