Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
241,600
void (int startOffset, int endOffset, boolean updateSystemSelection) { // updating system selection is not supported currently for TextComponentEditor setSelection(startOffset, endOffset); }
setSelection
241,601
void (int startOffset, @Nullable VisualPosition endPosition, int endOffset) { setSelection(startOffset, endOffset); }
setSelection
241,602
void (@Nullable VisualPosition startPosition, int startOffset, @Nullable VisualPosition endPosition, int endOffset) { setSelection(startOffset, endOffset); }
setSelection
241,603
void (@Nullable VisualPosition startPosition, int startOffset, @Nullable VisualPosition endPosition, int endOffset, boolean updateSystemSelection) { // updating system selection is not supported currently for TextComponentEditor setSelection(startOffset, endOffset); }
setSelection
241,604
void () { JTextComponent textComponent = getTextComponent(); final int position = textComponent.getCaretPosition(); textComponent.select(position, position); }
removeSelection
241,605
void () { EditorActionUtil.selectEntireLines(this, true); }
selectLineAtCaret
241,606
void (boolean honorCamelWordsSettings) { removeSelection(); EditorActionHandler handler = EditorActionManager.getInstance().getActionHandler( IdeActions.ACTION_EDITOR_SELECT_WORD_AT_CARET); handler.execute(myEditor, null, DataManager.getInstance().getDataContext(myEditor.getComponent())); }
selectWordAtCaret
241,607
void () { }
dispose
241,608
boolean () { return false; }
isAtRtlLocation
241,609
boolean () { return false; }
isAtBidiRunBoundary
241,610
CaretVisualAttributes () { return CaretVisualAttributes.DEFAULT; }
getVisualAttributes
241,611
void (@NotNull CaretVisualAttributes attributes) { }
setVisualAttributes
241,612
JTextComponent () { return myEditor.getContentComponent(); }
getTextComponent
241,613
MarkupEditorFilter (@NotNull MarkupEditorFilter filter) { return editor -> !filter.avaliableIn(editor); }
createNotFilter
241,614
MarkupEditorFilter () { return IS_DIFF_FILTER; }
createIsDiffFilter
241,615
MarkupEditorFilter () { return NOT_DIFF_FILTER; }
createIsNotDiffFilter
241,616
void (@NotNull Editor editor, @NotNull Graphics g, @NotNull Rectangle r) { if (myColor == null || ExperimentalUI.isNewUI()) return; g.setColor(myColor); g.fillRect(r.x, r.y, myThickness, r.height); g.fillRect(r.x + myThickness, r.y, myDepth, myThickness); g.fillRect(r.x + myThickness, r.y + r.height - myThickness, myDe...
paint
241,617
TextAttributesKey () { return myAttributesKey; }
getAttributesKey
241,618
int () { return myDepth; }
getDepth
241,619
int () { return myThickness; }
getThickness
241,620
Position () { return myPosition; }
getPosition
241,621
Color () { return myColor; }
getColor
241,622
List<InspectionsLevel> () { return Collections.emptyList(); }
getAvailableLevels
241,623
List<LanguageHighlightLevel> () { return Collections.emptyList(); }
getHighlightLevels
241,624
void (@NotNull LanguageHighlightLevel newLevel) { }
setHighLightLevel
241,625
void (@NotNull Container container, @NotNull GridBag gc) { }
fillHectorPanels
241,626
boolean () { return false; }
canClosePopup
241,627
void () { }
onClosePopup
241,628
void () { }
toggleProblemsView
241,629
int (EditorColorsScheme s1, EditorColorsScheme s2) { int order1 = getOrder(s1); int order2 = getOrder(s2); if (order1 != order2) return order1 - order2; return s1.getName().compareToIgnoreCase(s2.getName()); }
compare
241,630
int (@NotNull EditorColorsScheme scheme) { if (scheme instanceof AbstractColorsScheme) { EditorColorsScheme original = ((AbstractColorsScheme)scheme).getOriginal(); if (original instanceof DefaultColorsScheme) { return DEFAULT_SCHEME_NAME.equals(original.getName()) ? DEFAULT_SCHEME : ONE_OF_DEFAULT_SCHEMES; } if (origi...
getOrder
241,631
void (@NotNull PluginDescriptor value) { pluginDescriptor = value; }
setPluginDescriptor
241,632
EditorColorsScheme () { return myDelegate; }
getDelegate
241,633
boolean () { return myDelegate.isReadOnly(); }
isReadOnly
241,634
void (@NotNull EditorColorsScheme delegate) { myDelegate = delegate; }
setDelegate
241,635
void (String name) { myDelegate.setName(name); }
setName
241,636
TextAttributes (TextAttributesKey key) { return myDelegate.getAttributes(key); }
getAttributes
241,637
void (@NotNull TextAttributesKey key, TextAttributes attributes) { myDelegate.setAttributes(key, attributes); }
setAttributes
241,638
Color () { return myDelegate.getDefaultBackground(); }
getDefaultBackground
241,639
Color () { return myDelegate.getDefaultForeground(); }
getDefaultForeground
241,640
void (ColorKey key, @Nullable Color color) { myDelegate.setColor(key, color); }
setColor
241,641
FontPreferences () { return myDelegate.getFontPreferences(); }
getFontPreferences
241,642
void (@NotNull FontPreferences preferences) { myDelegate.setFontPreferences(preferences); }
setFontPreferences
241,643
int () { return myDelegate.getEditorFontSize(); }
getEditorFontSize
241,644
float () { return myDelegate.getEditorFontSize2D(); }
getEditorFontSize2D
241,645
void (int fontSize) { myDelegate.setEditorFontSize(fontSize); }
setEditorFontSize
241,646
void (float fontSize) { myDelegate.setEditorFontSize(fontSize); }
setEditorFontSize
241,647
String () { return myDelegate.getEditorFontName(); }
getEditorFontName
241,648
void (String fontName) { myDelegate.setEditorFontName(fontName); }
setEditorFontName
241,649
Font (EditorFontType key) { return myDelegate.getFont(key); }
getFont
241,650
float () { return myDelegate.getLineSpacing(); }
getLineSpacing
241,651
void (float lineSpacing) { myDelegate.setLineSpacing(lineSpacing); }
setLineSpacing
241,652
boolean () { return myDelegate.isUseLigatures(); }
isUseLigatures
241,653
void (boolean useLigatures) { myDelegate.setUseLigatures(useLigatures); }
setUseLigatures
241,654
void (Element element) { }
readExternal
241,655
String () { return myDelegate.getName(); }
getName
241,656
Object () { return myDelegate.clone(); }
clone
241,657
FontPreferences () { return myDelegate.getConsoleFontPreferences(); }
getConsoleFontPreferences
241,658
void (@NotNull FontPreferences preferences) { myDelegate.setConsoleFontPreferences(preferences); }
setConsoleFontPreferences
241,659
String () { return myDelegate.getConsoleFontName(); }
getConsoleFontName
241,660
void (String fontName) { myDelegate.setConsoleFontName(fontName); }
setConsoleFontName
241,661
int () { return myDelegate.getConsoleFontSize(); }
getConsoleFontSize
241,662
float () { return myDelegate.getConsoleFontSize2D(); }
getConsoleFontSize2D
241,663
void (int fontSize) { myDelegate.setConsoleFontSize(fontSize); }
setConsoleFontSize
241,664
void (float fontSize) { myDelegate.setConsoleFontSize(fontSize); }
setConsoleFontSize
241,665
float () { return myDelegate.getConsoleLineSpacing(); }
getConsoleLineSpacing
241,666
void (float lineSpacing) { myDelegate.setConsoleLineSpacing(lineSpacing); }
setConsoleLineSpacing
241,667
Properties () { return myDelegate.getMetaProperties(); }
getMetaProperties
241,668
String () { return myDelegate.getDisplayName(); }
getDisplayName
241,669
boolean (int offset, @NotNull FoldRegionImpl region, boolean atStart, @NotNull Collection<? extends FoldRegionImpl> overlapping) { if (atStart) { if (lastCollapsedRegion == null || region.getEndOffset() > lastCollapsedRegion.getEndOffset() || region instanceof CustomFoldRegion && region.getStartOffset() == lastCollapse...
process
241,670
void (FoldRegion region) { for (int i = visible.size() - 1; i >= 0; i--) { if (region.getStartOffset() == visible.get(i).getStartOffset()) { visible.remove(i); } else { break; } } }
hideContainedRegions
241,671
CachedData (FoldRegion @Nullable [] visibleRegions, boolean fromRebuild) { if (!isFoldingEnabled()) { return null; } if (visibleRegions == null) { return rebuild(); } List<FoldRegion> topLevel = new ArrayList<>(visibleRegions.length/2); for (FoldRegion region : visibleRegions) { if (!region.isValid()) { if (fromRebuild...
updateCachedAndSortOffsets
241,672
CachedData () { CachedData cachedData = myCachedData; if (!cachedData.isAvailable() && ApplicationManager.getApplication().isDispatchThread()) { return rebuild(); } return cachedData; }
ensureAvailableData
241,673
boolean (@NotNull FoldRegion region, int offset) { return region.getStartOffset() < offset && offset < region.getEndOffset(); }
containsStrict
241,674
void (@NotNull Consumer<? super FoldRegion> consumer) { myMarkerTree.processAll(region -> { consumer.consume(region); return true; }); }
forEach
241,675
int (@NotNull CachedData cachedData, int offset) { int[] endOffsets = cachedData.topEndOffsets; if (endOffsets == null) return -1; offset--; // end offsets are decremented in cache int i = Arrays.binarySearch(endOffsets, offset); return i < 0 ? - i - 2 : i; }
getLastTopLevelIndexBefore
241,676
boolean () { return visibleRegions != null; }
isAvailable
241,677
void () { if (topFoldedInlaysHeightValid || !ApplicationManager.getApplication().isDispatchThread()) return; topFoldedInlaysHeightValid = true; if (hasBlockInlays()) { int count = topLevelRegions.length; topFoldedInlaysHeight = ArrayUtil.newIntArray(count); int inlaysHeightSum = 0; for (int i = 0; i < count; i++) { inl...
ensureInlayDataAvailable
241,678
EditorLastActionTracker () { return ApplicationManager.getApplication().getService(EditorLastActionTracker.class); }
getInstance
241,679
String (AnAction action) { return action instanceof ActionStub ? ((ActionStub)action).getId() : ActionManager.getInstance().getId(action); }
getActionId
241,680
void () { myLastActionId = null; myLastEditor = null; }
doResetLastAction
241,681
void (@NotNull EditorFactoryEvent event) { EditorLastActionTracker tracker = getInstance(); EditorImpl killedEditor = (EditorImpl)event.getEditor(); if (tracker.myCurrentEditor == killedEditor) { tracker.myCurrentEditor = null; } if (tracker.myLastEditor == killedEditor) { tracker.myLastEditor = null; } }
editorReleased
241,682
void () { EditorLastActionTracker tracker = getTrackerIfCreated(); if (tracker != null) { tracker.doResetLastAction(); } }
resetLastAction
241,683
void (@NotNull AnAction action, @NotNull AnActionEvent event) { Editor editor = event.getData(CommonDataKeys.HOST_EDITOR); EditorLastActionTracker tracker = editor == null ? getTrackerIfCreated() : getInstance(); if (tracker == null) { return; } tracker.myCurrentEditor = editor; if (tracker.myCurrentEditor != tracker.m...
beforeActionPerformed
241,684
void (@NotNull AnAction action, @NotNull AnActionEvent event, @NotNull AnActionResult result) { EditorLastActionTracker tracker = getInstance(); tracker.myLastActionId = getActionId(action); tracker.myLastEditor = tracker.myCurrentEditor; tracker.myCurrentEditor = null; }
afterActionPerformed
241,685
void (char c, @NotNull DataContext dataContext) { resetLastAction(); }
beforeEditorTyping
241,686
void (@NotNull EditorMouseEvent e) { resetLastAction(); }
mousePressed
241,687
void (@NotNull EditorMouseEvent e) { resetLastAction(); }
mouseClicked
241,688
void (@NotNull EditorMouseEvent e) { resetLastAction(); }
mouseReleased
241,689
boolean (final EditorImpl editor) { final CaretModel caretModel = editor.getCaretModel(); final Caret caret = caretModel.getPrimaryCaret(); final Document document = editor.getDocument(); return document instanceof DocumentImpl && editor.getHighlighter() instanceof LexerEditorHighlighter && !(editor.getComponent().getP...
canPaintImmediately
241,690
boolean (final Editor editor, final Caret caret) { return caret.getLogicalPosition().compareTo(editor.offsetToLogicalPosition(caret.getOffset())) != 0; }
isInVirtualSpace
241,691
boolean (final Document document, final int offset) { return offset < document.getTextLength() && document.getCharsSequence().charAt(offset) != '\n'; }
isInsertion
241,692
boolean (EditorEx editor, Caret caret) { int offset = caret.getOffset(); EditorColorsScheme colorsScheme = editor.getColorsScheme(); return editor.getMarkupModel().processRangeHighlightersOverlappingWith(offset, offset, h -> { TextAttributes attrs = h.getTextAttributes(colorsScheme); return attrs == null || !attrs.hasE...
noBorderEffectPainted
241,693
void (final Graphics2D g, final int offset, final char c2) { final EditorImpl editor = myEditor; final Document document = editor.getDocument(); final LexerEditorHighlighter highlighter = (LexerEditorHighlighter)myEditor.getHighlighter(); final EditorSettings settings = editor.getSettings(); final boolean isBlockCursor...
paintImmediately
241,694
boolean (final TextAttributes attributes) { return attributes.getEffectType() != EffectType.BOXED || attributes.getEffectColor() == null; }
canRender
241,695
void (final Graphics2D graphics, final Consumer<? super Graphics2D> painter) { final Rectangle bounds = graphics.getClipBounds(); createOrUpdateImageBuffer(myEditor.getComponent(), graphics, bounds.getSize()); useSafely(myImage.getGraphics(), imageGraphics -> { imageGraphics.translate(-bounds.x, -bounds.y); painter.con...
paintWithDoubleBuffering
241,696
void (final JComponent component, final Graphics2D graphics, final Dimension size) { if (ApplicationManager.getApplication().isUnitTestMode()) { if (myImage == null || !isLargeEnough(myImage, size)) { int width = (int) Math.ceil(PaintUtil.alignToInt(size.width, graphics, PaintUtil.RoundingMode.CEIL)); int height = (int...
createOrUpdateImageBuffer
241,697
boolean (final Image image, final Dimension size) { final int width = image.getWidth(null); final int height = image.getHeight(null); if (width == -1 || height == -1) { throw new IllegalArgumentException("Image size is undefined"); } return width >= size.width && height >= size.height; }
isLargeEnough
241,698
boolean (VolatileImage image, Component component) { GraphicsConfiguration componentConfig = component.getGraphicsConfiguration(); if (SystemInfo.isWindows && image instanceof SunVolatileImage) { // JBR-1540 GraphicsConfiguration imageConfig = ((SunVolatileImage)image).getGraphicsConfig(); if (imageConfig != null && co...
isImageValid
241,699
void (final Graphics2D g, final Rectangle2D r, final Color color) { g.setColor(color); g.fill(r); }
fillRect