Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
242,500
VisualPosition () { int offset = getOffset(); int logicalLine = myEditor.getDocument().getLineNumber(offset); int lineEndOffset = myEditor.getDocument().getLineEndOffset(logicalLine); VisualPosition position = myEditor.offsetToVisualPosition(lineEndOffset, true, true); if (myEditor.getFoldingModel().isOffsetCollapsed(l...
getVisualPosition
242,501
int () { return myEditor.getLineHeight(); }
getHeightInPixels
242,502
InlayProperties () { return new InlayProperties() .relatesToPrecedingText(isRelatedToPrecedingText()) .disableSoftWrapping(!mySoftWrappable) .priority(myPriority); }
getProperties
242,503
String () { return "[After-line-end inlay, offset=" + getOffset() + ", width=" + myWidthInPixels + ", renderer=" + myRenderer + "]" + (isValid() ? "" : "(invalid)"); }
toString
242,504
void (Editor editor) { ActionManager actionManager = ActionManager.getInstance(); AnAction group = actionManager.getAction(IdeActions.GROUP_EDITOR_BIDI_TEXT_DIRECTION); if (group instanceof ActionGroup) { JPopupMenu popupMenu = actionManager.createActionPopupMenu(ActionPlaces.MAIN_MENU, (ActionGroup)group).getComponent...
showChooserPopup
242,505
FontFallbackIterator (@NotNull FontPreferences fontPreferences) { myFontPreferences = fontPreferences; return this; }
setPreferredFonts
242,506
FontFallbackIterator (@NotNull String familyName, int size) { FontPreferencesImpl preferences = new FontPreferencesImpl(); preferences.register(familyName, size); myFontPreferences = preferences; return this; }
setPreferredFont
242,507
FontFallbackIterator (@JdkConstants.FontStyle int fontStyle) { myFontStyle = fontStyle; return this; }
setFontStyle
242,508
FontFallbackIterator (@Nullable FontRenderContext fontRenderContext) { myFontRenderContext = fontRenderContext; return this; }
setFontRenderContext
242,509
void (@NotNull CharSequence text, int start, int end) { assert 0 <= start && start <= end && end <= text.length() : "Text length: " + text.length() + ", start: " + start + ", end: " + end; CharacterIterator characterIterator = null; for (int i = start; i < end; i++) { if (text.charAt(i) >= COMPLEX_CHAR_START) { charact...
start
242,510
void (char @NotNull [] text, int start, int end) { assert 0 <= start && start <= end && end <= text.length : "Text length: " + text.length + ", start: " + start + ", end: " + end; CharacterIterator characterIterator = null; for (int i = start; i < end; i++) { if (text[i] >= COMPLEX_CHAR_START) { characterIterator = new...
start
242,511
void (CharSequence textAsCharSequence, char[] textAsArray, CharacterIterator characterIterator, int start, int end) { myTextAsCharSequence = textAsCharSequence; myTextAsArray = textAsArray; if (characterIterator == null) { myTrivialBreaker.setRange(start, end); myIterator = myTrivialBreaker; } else { myIterator = Break...
doStart
242,512
boolean () { return myStart == myEnd; }
atEnd
242,513
void () { myStart = myEnd; myEnd = myIterator.current(); myFontInfo = myNextFontInfo; int end; while ((end = myIterator.next()) != BreakIterator.DONE) { if (isFormatChar(myEnd, end) && myFontInfo != null) myNextFontInfo = myFontInfo; else myNextFontInfo = getFontAbleToDisplay(myEnd, end); if (myFontInfo == null) myFont...
advance
242,514
boolean (int start, int end) { if (end - start == 1) { int charCode = myTextAsCharSequence == null ? myTextAsArray[start] : myTextAsCharSequence.charAt(start); // From CMap#getFormatCharGlyph if (charCode >= 0x200c) { if ((charCode <= 0x200f) || (charCode >= 0x2028 && charCode <= 0x202e) || (charCode >= 0x206a && charC...
isFormatChar
242,515
FontInfo (int start, int end) { if (myTextAsCharSequence == null) { return ComplementaryFontsRegistry.getFontAbleToDisplay(myTextAsArray, start, end, myFontStyle, myFontPreferences, myFontRenderContext); } else { return ComplementaryFontsRegistry.getFontAbleToDisplay(myTextAsCharSequence, start, end, myFontStyle, myFon...
getFontAbleToDisplay
242,516
int () { return myStart; }
getStart
242,517
int () { return myEnd; }
getEnd
242,518
FontInfo () { if (myFontRenderContext == null) { throw new IllegalStateException("FontRenderContext must be set to generate FontInfo"); } return myFontInfo; }
getFontInfo
242,519
Font () { return myFontInfo.getFont(); }
getFont
242,520
void (int start, int end) { myStart = start; myEnd = end; }
setRange
242,521
int () { return myCurrent = myStart; }
first
242,522
int () { throw new UnsupportedOperationException(); }
last
242,523
int (int n) { throw new UnsupportedOperationException(); }
next
242,524
int () { return myCurrent >= myEnd ? DONE : ++myCurrent; }
next
242,525
int () { throw new UnsupportedOperationException(); }
previous
242,526
int (int offset) { throw new UnsupportedOperationException(); }
following
242,527
int () { return myCurrent; }
current
242,528
CharacterIterator () { throw new UnsupportedOperationException(); }
getText
242,529
void (CharacterIterator newText) { throw new UnsupportedOperationException(); }
setText
242,530
Node<T> () { return (Node<T>)super.getRoot(); }
getRoot
242,531
int (@Nullable Node<T> node, int offset, int deltaUpToRootExclusive) { if (node == null) return 0; int delta = deltaUpToRootExclusive + node.delta; if (offset >= node.maxEnd + delta) return node.subtreeSum; int value = getSumOfValuesForOverlappingRanges(node.getLeft(), offset, delta); if (offset >= node.intervalStart()...
getSumOfValuesForOverlappingRanges
242,532
RMNode<T> (@NotNull T key, int start, int end, boolean greedyToLeft, boolean greedyToRight, boolean stickingToRight, int layer) { assert start == end; assert !greedyToLeft; assert !greedyToRight; return new Node<>(this, key, start, start, false, false, stickingToRight); }
createNewNode
242,533
Node<T> () { return (Node<T>)super.getLeft(); }
getLeft
242,534
Node<T> () { return (Node<T>)super.getRight(); }
getRight
242,535
Node<T> () { return (Node<T>)super.getParent(); }
getParent
242,536
int () { int sum = 0; for (Supplier<? extends T> g : intervals) { sum += g.get().getAsInt(); } return sum; }
getLocalSum
242,537
void () { subtreeSum = getLocalSum(); Node<T> left = getLeft(); if (left != null) subtreeSum += left.subtreeSum; Node<T> right = getRight(); if (right != null) subtreeSum += right.subtreeSum; }
recalculateSubTreeSum
242,538
void () { Node<?> n = this; while (n != null) { n.recalculateSubTreeSum(); n = n.getParent(); } }
recalculateSubTreeSumUp
242,539
void (@NotNull RangeHighlighterEx highlighter) { TextAttributes attributes = highlighter.getTextAttributes(getColorsScheme()); onHighlighterChanged(highlighter, myGutterComponent.canImpactSize(highlighter), EditorUtil.attributesImpactFontStyle(attributes), EditorUtil.attributesImpactForegroundColor(attributes)); }
afterAdded
242,540
void (@NotNull RangeHighlighterEx highlighter) { TextAttributes attributes = highlighter.getTextAttributes(getColorsScheme()); onHighlighterChanged(highlighter, myGutterComponent.canImpactSize(highlighter), EditorUtil.attributesImpactFontStyle(attributes), EditorUtil.attributesImpactForegroundColor(attributes)); }
afterRemoved
242,541
void (@NotNull RangeHighlighterEx highlighter, boolean renderersChanged, boolean fontStyleChanged, boolean foregroundColorChanged) { onHighlighterChanged(highlighter, renderersChanged, fontStyleChanged, foregroundColorChanged); }
attributesChanged
242,542
void () { myMarkupModel.addErrorMarkerListener(new ErrorStripeListener() { @Override public void errorMarkerChanged(@NotNull ErrorStripeEvent e) { errorStripeMarkerChanged((RangeHighlighterEx)e.getHighlighter()); } }, myCaretModel); myDocumentMarkupModel.addMarkupModelListener(myCaretModel, myMarkupModelListener); myMa...
addListeners
242,543
void (@NotNull ErrorStripeEvent e) { errorStripeMarkerChanged((RangeHighlighterEx)e.getHighlighter()); }
errorMarkerChanged
242,544
void (@NotNull CaretEvent e) { if (myState.isStickySelection()) { int selectionStart = Math.min(myStickySelectionStart, getDocument().getTextLength()); mySelectionModel.setSelection(selectionStart, myCaretModel.getVisualPosition(), myCaretModel.getOffset()); } }
caretPositionChanged
242,545
void (@NotNull CaretEvent e) { if (myPrimaryCaret != null) { myPrimaryCaret.updateVisualPosition(); // repainting old primary caret's row background } repaintCaretRegion(e); myPrimaryCaret = myCaretModel.getPrimaryCaret(); }
caretAdded
242,546
void (@NotNull CaretEvent e) { repaintCaretRegion(e); myPrimaryCaret = myCaretModel.getPrimaryCaret(); // repainting new primary caret's row background myPrimaryCaret.updateVisualPosition(); }
caretRemoved
242,547
void () { if (myCaretModel.isUpToDate()) { myCaretModel.updateVisualPosition(); } }
recalculationEnds
242,548
void () { myGutterComponent.clearLineToGutterRenderersCache(); }
softWrapsChanged
242,549
void (@NotNull Inlay<?> inlay, int changeFlags) { onInlayUpdated(inlay, changeFlags); }
onUpdated
242,550
void (@NotNull Editor editor) { onInlayBatchModeFinish(); }
onBatchModeFinish
242,551
void () { myFocusModeModel.applyFocusMode(myCaretModel.getPrimaryCaret()); }
applyFocusMode
242,552
boolean (@NotNull FoldRegion region) { return myFocusModeModel.isInFocusMode(region); }
isInFocusMode
242,553
Segment () { return myFocusModeModel.getFocusModeRange(); }
getFocusModeRange
242,554
FocusModeModel () { return myFocusModeModel; }
getFocusModeModel
242,555
void (@NotNull FocusEvent e) { myCaretCursor.activate(); for (Caret caret : myCaretModel.getAllCarets()) { int caretLine = caret.getLogicalPosition().line; repaintLines(caretLine, caretLine); } fireFocusGained(e); }
focusGained
242,556
void (@NotNull FocusEvent e) { clearCaretThread(); for (Caret caret : myCaretModel.getAllCarets()) { int caretLine = caret.getLogicalPosition().line; repaintLines(caretLine, caretLine); } fireFocusLost(e); }
focusLost
242,557
void (@NotNull RangeHighlighterEx highlighter) { if (myDocument.isInBulkUpdate() || myInlayModel.isInBatchMode()) return; // will be repainted later if (myDocumentChangeInProgress) { // postpone repaint request, as folding model can be in inconsistent state and so coordinate // conversions might give incorrect results ...
errorStripeMarkerChanged
242,558
void (@NotNull RangeHighlighterEx highlighter, boolean canImpactGutterSize, boolean fontStyleChanged, boolean foregroundColorChanged) { EdtInvocationManager.invokeLaterIfNeeded(() -> { if (isDisposed() || myDocument.isInBulkUpdate() || myInlayModel.isInBatchMode()) return; // will be repainted later if (canImpactGutter...
onHighlighterChanged
242,559
void (@NotNull Inlay<?> inlay, int changeFlags) { if (myDocument.isInBulkUpdate() || myInlayModel.isInBatchMode()) return; if ((changeFlags & InlayModel.ChangeFlags.GUTTER_ICON_PROVIDER_CHANGED) != 0) updateGutterSize(); if (myDocument.isInEventsHandling() || (changeFlags & (InlayModel.ChangeFlags.WIDTH_CHANGED | Inlay...
onInlayUpdated
242,560
void () { if (myDocument.isInBulkUpdate()) return; validateSize(); updateGutterSize(); myEditorComponent.repaint(); myGutterComponent.repaint(); myMarkupModel.repaint(); updateCaretCursor(); }
onInlayBatchModeFinish
242,561
void (@NotNull VisibleAreaEvent e) { ReadAction.run(() -> { Rectangle oldRectangle = e.getOldRectangle(); Rectangle newRectangle = e.getNewRectangle(); if (!myScrollingToCaret && oldRectangle != null && oldRectangle.height != newRectangle.height && oldRectangle.y == newRectangle.y && newRectangle.height > 0) { int care...
moveCaretIntoViewIfCoveredByToolWindowBelow
242,562
Color (@NotNull Color base, boolean dark) { return dark ? ColorUtil.withAlpha(ColorUtil.shift(base, 1.35), 0.5) : ColorUtil.withAlpha(ColorUtil.shift(base, 0.68), 0.4); }
adjustThumbColor
242,563
void (@NotNull CaretEvent e) { CaretImpl caretImpl = (CaretImpl)e.getCaret(); if (caretImpl != null) { caretImpl.updateVisualPosition(); if (caretImpl.hasSelection()) { repaint(caretImpl.getSelectionStart(), caretImpl.getSelectionEnd(), false); } } }
repaintCaretRegion
242,564
EditorColorsScheme (@Nullable EditorColorsScheme customGlobalScheme) { return new MyColorSchemeDelegate(customGlobalScheme); }
createBoundColorSchemeDelegate
242,565
int () { return ReadAction.compute(() -> myView.getPrefixTextWidthInPixels()).intValue(); }
getPrefixTextWidthInPixels
242,566
void (@Nullable String prefixText, @Nullable TextAttributes attributes) { ReadAction.run(() -> { mySoftWrapModel.recalculate(); myView.setPrefix(prefixText, attributes); }); }
setPrefixTextAndAttributes
242,567
boolean () { return myPurePaintingMode; }
isPurePaintingMode
242,568
void (boolean enabled) { myPurePaintingMode = enabled; }
setPurePaintingMode
242,569
void (@NotNull IntFunction<? extends @NotNull Collection<? extends LineExtensionInfo>> lineExtensionPainter) { myLineExtensionPainters.add(lineExtensionPainter); }
registerLineExtensionPainter
242,570
boolean (int line, @NotNull Processor<? super LineExtensionInfo> processor) { for (IntFunction<? extends @NotNull Collection<? extends LineExtensionInfo>> painter : myLineExtensionPainters) { for (LineExtensionInfo extension : painter.apply(line)) { if (!processor.process(extension)) { return false; } } } if (myProject...
processLineExtensions
242,571
void (@Nullable ButtonlessScrollBarUI.ScrollbarRepaintCallback callback) { myVerticalScrollBar.registerRepaintCallback(callback); }
registerScrollBarRepaintCallback
242,572
int () { int expectedCaretOffset = myExpectedCaretOffset; return ReadAction.compute(() -> expectedCaretOffset == -1 ? getCaretModel().getOffset() : expectedCaretOffset); }
getExpectedCaretOffset
242,573
void (@Nullable String groupId) { myState.setContextMenuGroupId(groupId); }
setContextMenuGroupId
242,574
void (@NotNull EditorPopupHandler popupHandler) { myPopupHandlers.add(popupHandler); }
installPopupHandler
242,575
List<EditorPopupHandler> () { return myPopupHandlers; }
getPopupHandlers
242,576
void (@NotNull EditorPopupHandler popupHandler) { myPopupHandlers.remove(popupHandler); }
uninstallPopupHandler
242,577
void (@NotNull Object requestor, @Nullable Cursor cursor) { ReadAction.run(() -> { if (cursor == null) { myCustomCursors.remove(requestor); } else { myCustomCursors.put(requestor, cursor); } updateEditorCursor(); }); }
setCustomCursor
242,578
void (boolean isViewer) { myState.setViewer(isViewer); }
setViewer
242,579
boolean () { return myState.isViewer() || myState.isRendererMode(); }
isViewer
242,580
boolean () { return myState.isRendererMode(); }
isRendererMode
242,581
void (boolean isRendererMode) { myState.setRendererMode(isRendererMode); }
setRendererMode
242,582
void (@NotNull VirtualFile vFile) { // yes, compare by instance //noinspection UseVirtualFileEquals if (vFile != myVirtualFile) { myVirtualFile = vFile; reinitSettings(); } }
setFile
242,583
VirtualFile () { return myVirtualFile; }
getVirtualFile
242,584
SelectionModelImpl () { return mySelectionModel; }
getSelectionModel
242,585
MarkupModelEx () { return myMarkupModel; }
getMarkupModel
242,586
MarkupModelEx () { return myDocumentMarkupModel; }
getFilteredDocumentMarkupModel
242,587
FoldingModelImpl () { return myFoldingModel; }
getFoldingModel
242,588
CaretModelImpl () { return myCaretModel; }
getCaretModel
242,589
ScrollingModelEx () { return myScrollingModel; }
getScrollingModel
242,590
SoftWrapModelImpl () { return mySoftWrapModel; }
getSoftWrapModel
242,591
InlayModelImpl () { return myInlayModel; }
getInlayModel
242,592
EditorKind () { return myKind; }
getEditorKind
242,593
EditorSettings () { // assertReadAccess(); return mySettings; }
getSettings
242,594
void () { myView.reset(); }
resetSizes
242,595
void () { reinitSettings(true, true); }
reinitSettings
242,596
void (@NonNls @NotNull String msg) { myTraceableDisposable.throwDisposalError(msg); }
throwDisposalError
242,597
void (@NotNull Runnable runnable) { synchronized (NON_RELEASABLE_BLOCK_GUARD) { runnable.run(); } }
executeNonCancelableBlock
242,598
void () { synchronized (ourCaretBlinkingCommand) { if (ourCaretBlinkingCommand.myEditor == this) { ourCaretBlinkingCommand.myEditor = null; } } }
clearCaretThread
242,599
void () { myPanel.setLayout(new BorderLayout()); myPanel.add(myHeaderPanel, BorderLayout.NORTH); myGutterComponent.setOpaque(true); myScrollPane.setViewportView(myEditorComponent); //myScrollPane.setBorder(null); myScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); myScrollPane.setHor...
initComponent