private void invalidateRanges() { synchronized (myLock) { for (Range range : myRanges) { range.invalidate(); } } }
private void replaceRanges( @NotNull List<Range> rangesInChange, @NotNull List<Range> newRangesInChange) { for (Range range : rangesInChange) { if (range.getHighlighter() != null) { range.getHighlighter().dispose(); } range.setHighlighter(null); range.invalidate(); } for (Range range : newRangesInChange) { range.setHighlighter(createHighlighter(range)); } }
private void removeHighlightersFromMarkupModel() { myApplication.assertIsDispatchThread(); synchronized (myLock) { for (Range range : myRanges) { if (range.getHighlighter() != null) { range.getHighlighter().dispose(); } range.invalidate(); } myRanges.clear(); } }