private void createHighlighter(@NotNull Side side, boolean ignored) { Editor editor = myViewer.getEditor(side); TextDiffType type = DiffUtil.getLineDiffType(myFragment); int startLine = side.getStartLine(myFragment); int endLine = side.getEndLine(myFragment); myHighlighters.addAll( DiffDrawUtil.createHighlighter(editor, startLine, endLine, type, ignored)); myHighlighters.addAll(DiffDrawUtil.createLineMarker(editor, startLine, endLine, type, false)); }
@NotNull public TextDiffType getDiffType() { return DiffUtil.getLineDiffType(myFragment); }