Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
242,300
boolean (String subFamily) { initIfNeeded(); return italics.containsKey(subFamily); }
hasSubFamily
242,301
void (BiConsumer<? super Integer, ? super String> action) { myMap.forEach((weight, list) -> list.forEach(subFamily -> action.accept(weight, subFamily))); }
forEach
242,302
void (BiConsumer<? super Integer, ? super String> action) { ((TreeMap<Integer, Collection<String>>)myMap).descendingMap().forEach((weight, list) -> { list.forEach(subFamily -> action.accept(weight, subFamily)); }); }
forEachDescending
242,303
ColorProvider (@NotNull Color color) { return new StaticColorHolder(color); }
byColor
242,304
ColorProvider (Editor editor, ColorKey ... keys) { return byColorsScheme(editor.getColorsScheme(), keys); }
byColorScheme
242,305
ColorProvider (EditorColorsScheme scheme, ColorKey ... keys) { return new ColorSchemeBasedHolder(scheme, keys); }
byColorsScheme
242,306
Color () { return myColor; }
getColor
242,307
Color () { while (!myKeys.isEmpty()) { ColorKey key = myKeys.get(myKeys.size() - 1); Color result = myScheme.getColor(key); if (result == null || result.equals(myScheme.getDefaultForeground())) { myKeys.remove(myKeys.size() - 1); } else { return result; } } return myScheme.getDefaultForeground(); }
getColor
242,308
boolean () { return myIsExpanded; }
isExpanded
242,309
void (boolean expanded) { setExpanded(expanded, true); }
setExpanded
242,310
void (boolean expanded, FoldingModelImpl foldingModel, FoldRegion region, boolean notify) { if (expanded) { foldingModel.expandFoldRegion(region, notify); } else{ foldingModel.collapseFoldRegion(region, notify); } }
doSetExpanded
242,311
boolean () { return super.isValid() && intervalStart() < intervalEnd(); }
isValid
242,312
String () { return myPlaceholderText; }
getPlaceholderText
242,313
Editor () { return myEditor; }
getEditor
242,314
boolean () { return myShouldNeverExpand; }
shouldNeverExpand
242,315
void (@NotNull DocumentEvent e) { if (isValid()) { int oldStart = intervalStart(); int oldEnd = intervalEnd(); int changeStart = e.getOffset(); int changeEnd = e.getOffset() + e.getOldLength(); if (changeStart < oldEnd && changeEnd > oldStart) myDocumentRegionWasChanged = true; } super.changedUpdateImpl(e); if (isValid...
changedUpdateImpl
242,316
void (@NotNull DocumentEvent e) { alignToValidBoundaries(); }
onReTarget
242,317
void (boolean greedy) { // not supported }
setGreedyToLeft
242,318
void (boolean greedy) { // not supported }
setGreedyToRight
242,319
void (boolean value) { // not supported }
setStickingToRight
242,320
void (boolean value) { putUserData(MUTE_INNER_HIGHLIGHTERS, value ? Boolean.TRUE : null); }
setInnerHighlightersMuted
242,321
boolean () { return Boolean.TRUE.equals(getUserData(MUTE_INNER_HIGHLIGHTERS)); }
areInnerHighlightersMuted
242,322
void (boolean value) { if (value != isGutterMarkEnabledForSingleLine()) { putUserData(SHOW_GUTTER_MARK_FOR_SINGLE_LINE, value ? Boolean.TRUE : null); myEditor.getGutterComponentEx().repaint(); } }
setGutterMarkEnabledForSingleLine
242,323
boolean () { return Boolean.TRUE.equals(getUserData(SHOW_GUTTER_MARK_FOR_SINGLE_LINE)); }
isGutterMarkEnabledForSingleLine
242,324
void (@NotNull String text) { myPlaceholderText = text; myEditor.getFoldingModel().onPlaceholderTextChanged(this); }
setPlaceholderText
242,325
void () { myEditor.getFoldingModel().removeRegionFromTree(this); }
dispose
242,326
String () { return "FoldRegion " + (myIsExpanded ? "-" : "+") + "(" + getStartOffset() + ":" + getEndOffset() + ")" + (isValid() ? "" : "(invalid)") + ", placeholder='" + myPlaceholderText + "'"; }
toString
242,327
void (int visualLine, boolean showInstantly) { myVisualLine = visualLine; if (myVisualLine == -1) return; int oldStartLine = myStartVisualLine; int oldEndLine = myEndVisualLine; myStartVisualLine = EditorMarkupModelImpl.fitLineToEditor(myEditor, myVisualLine - PREVIEW_LINES); myEndVisualLine = EditorMarkupModelImpl.fit...
update
242,328
void (int visualLine, @NotNull Collection<? extends RangeHighlighterEx> rangeHighlighters, boolean showInstantly, @NotNull HintHint hintInfo) { update(visualLine, showInstantly); ArrayList<? extends RangeHighlighterEx> highlighters = new ArrayList<>(rangeHighlighters); highlighters.sort((ex1, ex2) -> { LogicalPosition ...
show
242,329
void (boolean ok) { super.hide(ok); myDelayed = false; }
hide
242,330
void (@NotNull HintManagerImpl hintManager, @NotNull Point point, HintHint hintInfo) { int flags = HintManager.HIDE_BY_ANY_KEY | HintManager.HIDE_BY_TEXT_CHANGE | HintManager.HIDE_BY_MOUSEOVER | HintManager.HIDE_BY_ESCAPE | HintManager.HIDE_BY_SCROLLING; hintManager.showEditorHint(myEditorPreviewHint, myEditor, point, ...
showEditorHint
242,331
Dimension () { int width = myEditor.getGutterComponentEx().getWidth() + myEditor.getScrollingModel().getVisibleArea().width - myEditor.getVerticalScrollBar().getWidth(); width -= JBUIScale.scale(EDITOR_FRAGMENT_POPUP_BORDER) * 2 + myContentInsets; return new Dimension(width - BalloonImpl.POINTER_LENGTH.get(), Math.min(...
getPreferredSize
242,332
void (@NotNull Graphics g) { if (myVisualLine == -1 || myEditor.isDisposed()) return; Dimension size = getPreferredSize(); if (size.width <= 0 || size.height <= 0) return; EditorGutterComponentEx gutter = myEditor.getGutterComponentEx(); EditorComponentImpl content = myEditor.getContentComponent(); int gutterWidth = gu...
paintComponent
242,333
int () { return JBUIScale.scale(myMinMarkHeight); }
getMinMarkHeight
242,334
int () { return JBUIScale.scale(2); }
getThinGap
242,335
int () { return JBUIScale.scale(4); }
getMaxStripeSize
242,336
int () { return JBUIScale.scale(10); }
getMaxMacThumbWidth
242,337
int () { return JBUIScale.scale(18); }
getStatusIconSize
242,338
ActionUpdateThread () { return ActionUpdateThread.EDT; }
getActionUpdateThread
242,339
void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(showNavigation); }
update
242,340
void () { setTargetComponent(editor.getContentComponent()); super.addNotify(); }
addNotify
242,341
void (Graphics g) { editorButtonLook.paintBackground(g, this, myEditor.getBackgroundColor()); }
paintComponent
242,342
int () { return getStatusIconSize(); }
getSeparatorHeight
242,343
ActionButtonWithText (@NotNull AnAction action, @NotNull String place, @NotNull Presentation presentation, Supplier<? extends @NotNull Dimension> minimumSize) { ActionButtonWithText button = super.createTextButton(action, place, presentation, minimumSize); JBColor color = JBColor.lazy(() -> { return ObjectUtils.notNull...
createTextButton
242,344
ActionButton (@NotNull AnAction action, @NotNull String place, @NotNull Presentation presentation, Supplier<? extends @NotNull Dimension> minimumSize) { return new ActionButton(action, presentation, place, minimumSize) { @Override public void updateIcon() { super.updateIcon(); revalidate(); repaint(); } @Override publi...
createIconButton
242,345
void () { super.updateIcon(); revalidate(); repaint(); }
updateIcon
242,346
Insets () { return myAction == nextErrorAction ? JBUI.insets(2, 1) : myAction == prevErrorAction ? JBUI.insets(2, 1, 2, 2) : JBUI.insets(2); }
getInsets
242,347
Dimension () { Icon icon = getIcon(); Dimension size = new Dimension(icon.getIconWidth(), icon.getIconHeight()); int minSize = getStatusIconSize(); size.width = Math.max(size.width, minSize); size.height = Math.max(size.height, minSize); JBInsets.addTo(size, getInsets()); return size; }
getPreferredSize
242,348
void () { LayoutManager layoutManager = getLayout(); if (layoutManager != null) { layoutManager.layoutContainer(this); } else { super.doLayout(); } }
doLayout
242,349
Dimension (Dimension preferredSize) { return preferredSize; }
updatePreferredSize
242,350
Dimension (Dimension minimumSize) { return minimumSize; }
updateMinimumSize
242,351
void (ComponentEvent event) { Component toolbar = event.getComponent(); if (toolbar.getWidth() > 0 && toolbar.getHeight() > 0) { updateTrafficLightVisibility(); } }
componentResized
242,352
void (MouseEvent event) { myTrafficLightPopup.hidePopup(); analyzerStatus.getController().toggleProblemsView(); }
mouseClicked
242,353
void (MouseEvent event) { myTrafficLightPopup.scheduleShow(event, analyzerStatus); }
mouseEntered
242,354
void (MouseEvent event) { myTrafficLightPopup.scheduleHide(); }
mouseExited
242,355
void (@NotNull AnAction action, @NotNull AnActionEvent event) { if (action instanceof HintManagerImpl.ActionToIgnore) { return; } myTrafficLightPopup.hidePopup(); }
beforeActionPerformed
242,356
void (@NotNull FileEditorManagerEvent event) { showToolbar = EditorSettingsExternalizable.getInstance().isShowInspectionWidget() && analyzerStatus.getController().isToolbarEnabled(); updateTrafficLightVisibility(); }
selectionChanged
242,357
String () { return "EditorMarkupModel for "+myEditor; }
toString
242,358
void (@NotNull CaretEvent event) { updateTrafficLightVisibility(); }
caretPositionChanged
242,359
void (@NotNull Document document) { myTrafficLightPopup.hidePopup(); updateTrafficLightVisibility(); }
afterDocumentChange
242,360
void (@NotNull VisibleAreaEvent e) { updateTrafficLightVisibility(); }
visibleAreaChanged
242,361
void () { myStatusUpdates.queue(Update.create("visibility", this::doUpdateTrafficLightVisibility)); }
updateTrafficLightVisibility
242,362
void () { if (trafficLightVisible) { if (showToolbar && myEditor.myView != null) { statusToolbar.setTargetComponent(myEditor.getContentComponent()); VisualPosition pos = myEditor.getCaretModel().getPrimaryCaret().getVisualPosition(); Point point = myEditor.visualPositionToXY(pos); point = SwingUtilities.convertPoint(my...
doUpdateTrafficLightVisibility
242,363
DefaultActionGroup () { DefaultActionGroup epActions = new DefaultActionGroup(); InspectionWidgetActionProvider.EP_NAME.getExtensionList(). forEach(extension -> { AnAction action = extension.createAction(myEditor); if (action != null) { extensionActions.put(extension, action); epActions.add(action); } }); InspectionWid...
createInspectionWidgetActions
242,364
void (@NotNull InspectionWidgetActionProvider extension, @NotNull PluginDescriptor pluginDescriptor) { AnAction action = extension.createAction(myEditor); if (action != null) { extensionActions.put(extension, action); epActions.add(action); } }
extensionAdded
242,365
void (@NotNull InspectionWidgetActionProvider extension, @NotNull PluginDescriptor pluginDescriptor) { AnAction action = extensionActions.remove(extension); if (action != null) { epActions.remove(action); } }
extensionRemoved
242,366
AnAction (@NotNull String id, @NotNull Icon icon) { AnAction delegate = ActionManager.getInstance().getAction(id); AnAction result = new MarkupModelDelegateAction(delegate); result.getTemplatePresentation().setIcon(icon); return result; }
createAction
242,367
int (int offset, @NotNull Document document) { if (offset < 0) { return 0; } if (offset > document.getTextLength()) { return myEditor.getVisibleLineCount(); } return myEditor.offsetToVisualLine(offset); }
offsetToLine
242,368
void () { myEditor.getVerticalScrollBar().repaint(); }
repaintVerticalScrollBar
242,369
void (boolean value) { MyErrorPanel errorPanel = getErrorPanel(); if (errorPanel != null) { if (value != trafficLightVisible) { trafficLightVisible = value; updateTrafficLightVisibility(); } repaint(); } }
setTrafficLightIconVisible
242,370
void () { if (myErrorStripeRenderer == null) return; myTrafficLightIconUpdates.queue(Update.create("traffic light icon", () -> { ErrorStripeRenderer errorStripeRenderer = myErrorStripeRenderer; if (errorStripeRenderer != null) { AnalyzerStatus newStatus = ReadAction.compute(() -> errorStripeRenderer.getStatus()); if (!...
repaintTrafficLightIcon
242,371
void (@NotNull AnalyzerStatus newStatus) { ThreadingAssertions.assertEventDispatchThread(); if (!isErrorStripeVisible() || resourcesDisposable.isDisposed()) { return; } statusTimer.cancelAllRequests(); AnalyzingType analyzingType = newStatus.getAnalyzingType(); boolean resetAnalyzingStatus = analyzerStatus.isTextStatus...
changeStatus
242,372
void () { myStatusUpdates.queue(Update.create("forcingUpdate", () -> { statusToolbar.updateActionsImmediately(); })); }
forcingUpdateStatusToolbar
242,373
LightweightHint () { if (myCurrentHint == null) return null; LightweightHint hint = myCurrentHint.get(); if (hint == null || !hint.isVisible()) { myCurrentHint = null; hint = null; } return hint; }
getCurrentHint
242,374
Rectangle (@NotNull LightweightHint hint) { JComponent component = hint.getComponent(); Point location = hint.getLocationOn(component); SwingUtilities.convertPointToScreen(location, component); return new Rectangle(location, hint.getSize()); }
getBoundsOnScreen
242,375
boolean (@NotNull MouseEvent e) { ThreadingAssertions.assertEventDispatchThread(); LightweightHint currentHint = getCurrentHint(); if (currentHint != null && (myKeepHint || myMouseMovementTracker.isMovingTowards(e, getBoundsOnScreen(currentHint)))) { return true; } int visualLine = getVisualLineByEvent(e); myLastVisual...
showToolTipByMouseMove
242,376
HintHint (Component component, Point point) { return new HintHint(component, point) .setAwtTooltip(true) .setPreferredPosition(Balloon.Position.atLeft) .setBorderInsets(JBUI.insets(EditorFragmentRenderer.EDITOR_FRAGMENT_POPUP_BORDER)) .setShowImmediately(true) .setAnimationEnabled(false) .setStatus(HintHint.Status.Info...
createHint
242,377
int (@NotNull MouseEvent e) { int y = e.getY(); if (e.getSource() == myEditor.getVerticalScrollBar() && y == myEditor.getVerticalScrollBar().getHeight() - 1) { y++; } return fitLineToEditor(myEditor, myEditor.offsetToVisualLine(yPositionToOffset(y + myWheelAccumulator, true))); }
getVisualLineByEvent
242,378
int (@NotNull EditorImpl editor, int visualLine) { int lineCount = editor.getVisibleLineCount(); int shift = 0; if (visualLine >= lineCount - 1) { CharSequence sequence = editor.getDocument().getCharsSequence(); shift = sequence.length() < 1 ? 0 : sequence.charAt(sequence.length() - 1) == '\n' ? 1 : 0; } return Math.ma...
fitLineToEditor
242,379
int (int visualLine, boolean startLine) { return myEditor.visualPositionToOffset(new VisualPosition(visualLine, startLine ? 0 : Integer.MAX_VALUE)); }
getOffset
242,380
void (@NotNull MarkupModelEx markupModel, int visualLine, @NotNull Collection<? super RangeHighlighterEx> highlighters) { int startOffset = getOffset(fitLineToEditor(myEditor, visualLine - EditorFragmentRenderer.PREVIEW_LINES), true); int endOffset = getOffset(fitLineToEditor(myEditor, visualLine + EditorFragmentRender...
collectRangeHighlighters
242,381
Set<RangeHighlighter> (int y) { Set<RangeHighlighter> highlighters = new HashSet<>(); addNearestHighlighters(this, y, highlighters); addNearestHighlighters(myEditor.getFilteredDocumentMarkupModel(), y, highlighters); return highlighters; }
getNearestHighlighters
242,382
void (@NotNull MarkupModelEx markupModel, int scrollBarY, @NotNull Collection<? super RangeHighlighter> result) { int startOffset = yPositionToOffset(scrollBarY - getMinMarkHeight(), true); int endOffset = yPositionToOffset(scrollBarY + getMinMarkHeight(), false); markupModel.processRangeHighlightersOverlappingWith(sta...
addNearestHighlighters
242,383
void (@NotNull MouseEvent e) { RangeHighlighter marker = getNearestRangeHighlighter(e); int offset; LogicalPosition logicalPositionToScroll = null; LightweightHint editorPreviewHint = myEditorFragmentRenderer.getEditorPreviewHint(); if (marker == null) { if (editorPreviewHint != null) { logicalPositionToScroll = myEdit...
doClick
242,384
void (boolean val) { if (val) { disposeErrorPanel(); MyErrorPanel panel = new MyErrorPanel(); myEditor.getVerticalScrollBar().setPersistentUI(panel); } else { myEditor.getVerticalScrollBar().setPersistentUI(JBScrollBar.createUI(null)); } myErrorStripeMarkersModel.setActive(val); }
setErrorStripeVisible
242,385
ErrorStripeMarkersModel () { return myErrorStripeMarkersModel; }
getErrorStripeMarkersModel
242,386
void (@NotNull PopupHandler handler) { ThreadingAssertions.assertEventDispatchThread(); MyErrorPanel errorPanel = getErrorPanel(); if (errorPanel != null) { errorPanel.setPopupHandler(handler); } }
setErrorPanelPopupHandler
242,387
void (@NotNull ErrorStripTooltipRendererProvider provider) { myTooltipRendererProvider = provider; }
setErrorStripTooltipRendererProvider
242,388
ErrorStripTooltipRendererProvider () { return myTooltipRendererProvider; }
getErrorStripTooltipRendererProvider
242,389
Editor () { return myEditor; }
getEditor
242,390
void (@Nullable ErrorStripeRenderer renderer) { ThreadingAssertions.assertEventDispatchThread(); if (myErrorStripeRenderer instanceof Disposable) { Disposer.dispose((Disposable)myErrorStripeRenderer); } myErrorStripeRenderer = renderer; if (renderer instanceof Disposable) { Disposer.register(resourcesDisposable, (Dispo...
setErrorStripeRenderer
242,391
void () { Disposer.dispose(resourcesDisposable); disposeErrorPanel(); statusToolbar.getComponent().removeComponentListener(toolbarComponentListener); ((JBScrollPane)myEditor.getScrollPane()).setStatusComponent(null); myErrorStripeRenderer = null; myTooltipRendererProvider = new BasicTooltipRendererProvider(); myEditorF...
dispose
242,392
void () { MyErrorPanel panel = getErrorPanel(); if (panel != null) { panel.uninstallListeners(); } }
disposeErrorPanel
242,393
void () { myErrorStripeMarkersModel.rebuild(); }
rebuild
242,394
boolean () { return myEditor.isMirrored(); }
isMirrored
242,395
boolean () { return !myEditor.shouldScrollBarBeOpaque(); }
transparent
242,396
boolean () { if (scrollbar.getOrientation() == Adjustable.VERTICAL) return !transparent(); return super.alwaysShowTrack(); }
alwaysShowTrack
242,397
void (JComponent c) { super.installUI(c); dropCache(); }
installUI
242,398
void (@NotNull JComponent c) { super.uninstallUI(c); dropCache(); }
uninstallUI
242,399
void () { super.installListeners(); scrollbar.addMouseMotionListener(this); scrollbar.addMouseListener(this); scrollbar.addMouseWheelListener(this); }
installListeners