Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
265,000
RangeHighlighterEx (@Nullable TextAttributesKey textAttributesKey, int startOffset, int endOffset, int layer, @NotNull HighlighterTargetArea targetArea, boolean isPersistent, @Nullable Consumer<? super RangeHighlighterEx> changeAttributesAction) { throw new ProcessCanceledException(); }
addRangeHighlighterAndChangeAttributes
265,001
void (@NotNull RangeHighlighterEx highlighter, @NotNull Consumer<? super RangeHighlighterEx> changeAttributesAction) { }
changeAttributesInBatch
265,002
RangeHighlighter (@Nullable TextAttributesKey textAttributesKey, int line, int layer) { throw new ProcessCanceledException(); }
addLineHighlighter
265,003
RangeHighlighter (int line, int layer, @Nullable TextAttributes textAttributes) { throw new ProcessCanceledException(); }
addLineHighlighter
265,004
void (@NotNull RangeHighlighter rangeHighlighter) { }
removeHighlighter
265,005
void () { }
removeAllHighlighters
265,006
void () { }
dispose
265,007
RangeHighlighterEx (@Nullable TextAttributesKey textAttributesKey, int lineNumber, int layer) { return null; }
addPersistentLineHighlighter
265,008
boolean (@NotNull RangeHighlighter highlighter) { return false; }
containsHighlighter
265,009
void (@NotNull Disposable parentDisposable, @NotNull MarkupModelListener listener) { }
addMarkupModelListener
265,010
void (final @NotNull RangeHighlighter highlighter, final @NotNull TextAttributes textAttributes) { }
setRangeHighlighterAttributes
265,011
boolean (int start, int end, @NotNull Processor<? super RangeHighlighterEx> processor) { return false; }
processRangeHighlightersOverlappingWith
265,012
boolean (int start, int end, @NotNull Processor<? super RangeHighlighterEx> processor) { return false; }
processRangeHighlightersOutside
265,013
MarkupIterator<RangeHighlighterEx> (int startOffset, int endOffset) { return MarkupIterator.EMPTY; }
overlappingIterator
265,014
int () { return myStart; }
getSelectionStart
265,015
int () { return myEnd; }
getSelectionEnd
265,016
boolean () { return myEnd > myStart; }
hasSelection
265,017
ImaginaryEditor () { return myCaretModel.getEditor(); }
getEditor
265,018
CaretModel () { return myCaretModel; }
getCaretModel
265,019
int () { return myPos; }
getOffset
265,020
void (int offset) { moveToOffset(offset, false); }
moveToOffset
265,021
void (int offset, boolean locateBeforeSoftWrap) { if (offset < 0) offset = 0; myStart = myPos = myEnd = offset; }
moveToOffset
265,022
RuntimeException () { return getEditor().notImplemented(); }
notImplemented
265,023
boolean () { throw notImplemented(); }
isValid
265,024
void (int columnShift, int lineShift, boolean withSelection, boolean scrollToCaret) { if (lineShift == 0) { myEnd += columnShift; if (!withSelection) { myStart = myPos = myEnd; } } else { var oldPos = myPos; var currentPosition = getLogicalPosition(); moveToLogicalPosition(new LogicalPosition(currentPosition.line + lin...
moveCaretRelatively
265,025
void (@NotNull LogicalPosition pos) { moveToOffset(getEditor().logicalPositionToOffset(pos)); }
moveToLogicalPosition
265,026
void (@NotNull VisualPosition pos) { moveToOffset(getEditor().visualPositionToOffset(pos)); }
moveToVisualPosition
265,027
boolean () { throw notImplemented(); }
isUpToDate
265,028
LogicalPosition () { return getEditor().offsetToLogicalPosition(myStart); }
getLogicalPosition
265,029
VisualPosition () { return getEditor().offsetToVisualPosition(myStart); }
getVisualPosition
265,030
int () { throw notImplemented(); }
getVisualLineStart
265,031
int () { throw notImplemented(); }
getVisualLineEnd
265,032
VisualPosition () { return getEditor().offsetToVisualPosition(myStart); }
getSelectionStartPosition
265,033
VisualPosition () { return getEditor().offsetToVisualPosition(myEnd); }
getSelectionEndPosition
265,034
int () { return getOffset(); }
getLeadSelectionOffset
265,035
VisualPosition () { throw notImplemented(); }
getLeadSelectionPosition
265,036
void (int startOffset, int endOffset) { if (startOffset < 0) startOffset = 0; if (endOffset < 0) endOffset = 0; // mimicking CaretImpl's doSetSelection: removing selection if startOffset == endOffset if (startOffset == endOffset) { myStart = myPos; myEnd = myPos; return; } if (startOffset > endOffset) { myStart = endOf...
setSelection
265,037
void (int startOffset, int endOffset, boolean updateSystemSelection) { setSelection(startOffset, endOffset); }
setSelection
265,038
void (int startOffset, @Nullable VisualPosition endPosition, int endOffset) { throw notImplemented(); }
setSelection
265,039
void (@Nullable VisualPosition startPosition, int startOffset, @Nullable VisualPosition endPosition, int endOffset) { throw notImplemented(); }
setSelection
265,040
void (@Nullable VisualPosition startPosition, int startOffset, @Nullable VisualPosition endPosition, int endOffset, boolean updateSystemSelection) { throw notImplemented(); }
setSelection
265,041
void () { myStart = myPos = myEnd; }
removeSelection
265,042
void () { throw notImplemented(); }
selectLineAtCaret
265,043
void (boolean honorCamelWordsSettings) { throw notImplemented(); }
selectWordAtCaret
265,044
boolean () { throw notImplemented(); }
isAtRtlLocation
265,045
boolean () { throw notImplemented(); }
isAtBidiRunBoundary
265,046
CaretVisualAttributes () { throw notImplemented(); }
getVisualAttributes
265,047
void (@NotNull CaretVisualAttributes attributes) { throw notImplemented(); }
setVisualAttributes
265,048
void () { throw notImplemented(); }
dispose
265,049
MarkupModel (@NotNull Document document, @Nullable Project project, boolean create) { if (document instanceof DocumentWindow) { Document delegate = ((DocumentWindow)document).getDelegate(); MarkupModelEx baseMarkupModel = (MarkupModelEx)forDocument(delegate, project, true); return new MarkupModelWindow(baseMarkupModel,...
forDocument
265,050
void (@NotNull Document document, @NotNull Project project) { MarkupModelImpl removed = getMarkupModelMap(document).remove(project); if (removed != null) { removed.dispose(); } }
removeMarkupModel
265,051
ImaginaryEditor () { return myEditor; }
getEditor
265,052
Caret () { return myCaret; }
getCurrentCaret
265,053
RuntimeException () { return myEditor.notImplemented(); }
notImplemented
265,054
void (@NotNull CaretListener listener) { LOG.info("Called ImaginaryCaretModel#addCaretListener which is stubbed and has no implementation"); }
addCaretListener
265,055
void (@NotNull CaretListener listener) { LOG.info("Called ImaginaryCaretModel#removeCaretListener which is stubbed and has no implementation"); }
removeCaretListener
265,056
TextAttributes () { throw notImplemented(); }
getTextAttributes
265,057
boolean () { throw notImplemented(); }
supportsMultipleCarets
265,058
int () { throw notImplemented(); }
getMaxCaretCount
265,059
Caret () { return myCaret; }
getPrimaryCaret
265,060
int () { return 1; }
getCaretCount
265,061
List<Caret> () { return Collections.singletonList(myCaret); }
getAllCarets
265,062
boolean (@NotNull Caret caret) { throw notImplemented(); }
removeCaret
265,063
void () { throw notImplemented(); }
removeSecondaryCarets
265,064
void (@NotNull List<? extends CaretState> caretStates) { setCaretsAndSelections(caretStates, true); }
setCaretsAndSelections
265,065
void (@NotNull List<? extends CaretState> caretStates, boolean updateSystemSelection) { if (caretStates.size() != 1) { LOG.error("Imaginary caret does not support multicaret. caretStates=" + caretStates); } CaretState state = caretStates.get(0); if (state.getCaretPosition() != null) { myCaret.moveToOffset(myEditor.logi...
setCaretsAndSelections
265,066
List<CaretState> () { return Collections.singletonList( new CaretState(myCaret.getLogicalPosition(), 0, myEditor.offsetToLogicalPosition(myCaret.getSelectionStart()), myEditor.offsetToLogicalPosition(myCaret.getSelectionEnd())) ); }
getCaretsAndSelections
265,067
void (@NotNull CaretAction action) { action.perform(myCaret); }
runForEachCaret
265,068
void (@NotNull CaretAction action, boolean reverseOrder) { action.perform(myCaret); }
runForEachCaret
265,069
void (@NotNull CaretActionListener listener, @NotNull Disposable disposable) { throw notImplemented(); }
addCaretActionListener
265,070
void (@NotNull Runnable runnable) { throw notImplemented(); }
runBatchCaretOperation
265,071
Editor () { return myEditor; }
getEditor
265,072
void (@NotNull SelectionListener listener) { LOG.info("Called ImaginarySelectionModel#addSelectionListener which is stubbed and has no implementation"); }
addSelectionListener
265,073
void (@NotNull SelectionListener listener) { LOG.info("Called ImaginarySelectionModel#addSelectionListener which is stubbed and has no implementation"); }
removeSelectionListener
265,074
void () { throw myEditor.notImplemented(); }
copySelectionToClipboard
265,075
void (@NotNull LogicalPosition blockStart, @NotNull LogicalPosition blockEnd) { throw myEditor.notImplemented(); }
setBlockSelection
265,076
TextAttributes () { throw myEditor.notImplemented(); }
getTextAttributes
265,077
boolean () { return false; }
keepIntervalsOnWeakReferences
265,078
int (@NotNull IntervalNode<RangeHighlighterEx> i1, @NotNull IntervalNode<RangeHighlighterEx> i2) { RHNode o1 = (RHNode)i1; RHNode o2 = (RHNode)i2; int d = o2.myLayer - o1.myLayer; if (d != 0) { return d; } int result = super.compareEqualStartIntervals(i1, i2); if (result != 0) { return result; } boolean persistent1 = o...
compareEqualStartIntervals
265,079
RHNode (@NotNull RangeHighlighterEx key, int start, int end, boolean greedyToLeft, boolean greedyToRight, boolean stickingToRight, int layer) { return new RHNode(this, key, start, end, greedyToLeft, greedyToRight, stickingToRight, layer); }
createNewNode
265,080
void () { boolean renderedInGutter = false; for (Supplier<? extends RangeHighlighterEx> getter : intervals) { RangeHighlighterEx h = getter.get(); renderedInGutter |= h.isRenderedInGutter(); } RHNode left = (RHNode)getLeft(); if (left != null) { renderedInGutter |= left.isRenderedInGutter(); } RHNode right = (RHNode)ge...
recalculateRenderFlags
265,081
void () { getTree().l.writeLock().lock(); try { RHNode n = this; while (n != null) { boolean prevInGutter = n.isRenderedInGutter(); n.recalculateRenderFlags(); if (n.isRenderedInGutter() == prevInGutter) break; n = (RHNode)n.getParent(); } } finally { getTree().l.writeLock().unlock(); } }
recalculateRenderFlagsUp
265,082
boolean (@Flag byte mask) { return BitUtil.isSet(myFlags, mask); }
isFlagSet
265,083
void (@Flag byte mask, boolean value) { //noinspection MagicConstant myFlags = BitUtil.set(myFlags, mask, value); }
setFlag
265,084
void (@Mask int mask, @Mask int value) { //noinspection MagicConstant myFlags = (byte)(myFlags & ~mask | value); }
setMask
265,085
TextAttributesKey () { return myTextAttributesKey; }
getTextAttributesKey
265,086
void (@Nullable TextAttributes textAttributes) { TextAttributes old = myForcedTextAttributes; if (old == textAttributes) return; myForcedTextAttributes = textAttributes; if (old == TextAttributes.ERASE_MARKER || textAttributes == TextAttributes.ERASE_MARKER || old == null && myTextAttributesKey != null) { fireChanged(f...
setTextAttributes
265,087
void (@NotNull TextAttributesKey textAttributesKey) { TextAttributesKey old = myTextAttributesKey; myTextAttributesKey = textAttributesKey; if (!textAttributesKey.equals(old)) { fireChanged(false, myForcedTextAttributes == null, myForcedTextAttributes == null); } }
setTextAttributesKey
265,088
void (boolean value) { putUserData(VISIBLE_IF_FOLDED, value ? Boolean.TRUE : null); }
setVisibleIfFolded
265,089
boolean () { return VISIBLE_IF_FOLDED.isIn(this); }
isVisibleIfFolded
265,090
int (@Nullable TextAttributes textAttributes) { return textAttributes == null ? Font.PLAIN : textAttributes.getFontType(); }
getFontStyle
265,091
Color (TextAttributes textAttributes) { return textAttributes == null ? null : textAttributes.getForegroundColor(); }
getForegroundColor
265,092
HighlighterTargetArea () { return isFlagSet(TARGET_AREA_IS_EXACT_MASK) ? HighlighterTargetArea.EXACT_RANGE : HighlighterTargetArea.LINES_IN_RANGE; }
getTargetArea
265,093
LineMarkerRenderer () { return myLineMarkerRenderer; }
getLineMarkerRenderer
265,094
void (LineMarkerRenderer renderer) { boolean oldRenderedInGutter = isRenderedInGutter(); LineMarkerRenderer old = myLineMarkerRenderer; myLineMarkerRenderer = renderer; if (isRenderedInGutter() != oldRenderedInGutter) { myModel.treeFor(this).updateRenderedFlags(this); } if (!Objects.equals(old, renderer)) { fireChanged...
setLineMarkerRenderer
265,095
CustomHighlighterRenderer () { return myCustomRenderer; }
getCustomRenderer
265,096
void (CustomHighlighterRenderer renderer) { CustomHighlighterRenderer old = myCustomRenderer; myCustomRenderer = renderer; if (!Objects.equals(old, renderer)) { fireChanged(true, false, false); } }
setCustomRenderer
265,097
GutterIconRenderer () { return myGutterIconRenderer; }
getGutterIconRenderer
265,098
void (GutterIconRenderer renderer) { boolean oldRenderedInGutter = isRenderedInGutter(); GutterMark old = myGutterIconRenderer; myGutterIconRenderer = renderer; if (isRenderedInGutter() != oldRenderedInGutter) { myModel.treeFor(this).updateRenderedFlags(this); } if (!Objects.equals(old, renderer)) { fireChanged(true, f...
setGutterIconRenderer
265,099
void (@Nullable Color color) { if (color == null) color = NULL_COLOR; Color old = myErrorStripeColor; myErrorStripeColor = color; if (!Objects.equals(old, color)) { fireChanged(false, false, false); } }
setErrorStripeMarkColor