mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
renamed to more obvious and distinctive
This commit is contained in:
@@ -19,7 +19,7 @@ import com.intellij.util.Processor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
interface IntervalTree<T> {
|
||||
boolean process(@NotNull Processor<? super T> processor);
|
||||
boolean processAll(@NotNull Processor<? super T> processor);
|
||||
boolean processOverlappingWith(int start, int end, @NotNull Processor<? super T> processor);
|
||||
boolean processContaining(int offset, @NotNull Processor<? super T> processor);
|
||||
|
||||
|
||||
@@ -419,7 +419,7 @@ abstract class IntervalTreeImpl<T> extends RedBlackTree<T> implements IntervalTr
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean process(@NotNull Processor<? super T> processor) {
|
||||
public boolean processAll(@NotNull Processor<? super T> processor) {
|
||||
try {
|
||||
l.readLock().lock();
|
||||
checkMax(true);
|
||||
@@ -1269,7 +1269,7 @@ abstract class IntervalTreeImpl<T> extends RedBlackTree<T> implements IntervalTr
|
||||
@Override
|
||||
public void clear() {
|
||||
l.writeLock().lock();
|
||||
process(t -> {
|
||||
processAll(t -> {
|
||||
beforeRemove(t, "Clear all");
|
||||
return true;
|
||||
});
|
||||
|
||||
@@ -95,8 +95,8 @@ public class MarkupModelImpl extends UserDataHolderBase implements MarkupModelEx
|
||||
if (size == 0) return RangeHighlighter.EMPTY_ARRAY;
|
||||
List<RangeHighlighterEx> list = new ArrayList<>(size);
|
||||
CommonProcessors.CollectProcessor<RangeHighlighterEx> collectProcessor = new CommonProcessors.CollectProcessor<>(list);
|
||||
myHighlighterTree.process(collectProcessor);
|
||||
myHighlighterTreeForLines.process(collectProcessor);
|
||||
myHighlighterTree.processAll(collectProcessor);
|
||||
myHighlighterTreeForLines.processAll(collectProcessor);
|
||||
myCachedHighlighters = list.toArray(new RangeHighlighter[list.size()]);
|
||||
}
|
||||
return myCachedHighlighters;
|
||||
|
||||
@@ -97,7 +97,7 @@ public class InlayModelImpl implements InlayModel, Disposable {
|
||||
}
|
||||
|
||||
void reinitSettings() {
|
||||
myInlayTree.process(inlay -> {
|
||||
myInlayTree.processAll(inlay -> {
|
||||
inlay.updateSize();
|
||||
return true;
|
||||
});
|
||||
|
||||
@@ -403,7 +403,7 @@ public abstract class EditorTextFieldCellRenderer implements TableCellRenderer,
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean processRangeMarkers(@NotNull Processor<? super RangeMarker> processor) { return myRangeMarkers.process(processor); }
|
||||
public boolean processRangeMarkers(@NotNull Processor<? super RangeMarker> processor) { return myRangeMarkers.processAll(processor); }
|
||||
|
||||
@Override
|
||||
public boolean processRangeMarkersOverlappingWith(int start,
|
||||
|
||||
Reference in New Issue
Block a user