Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
242,900 | int (@NotNull JComponent c) { return COPY_OR_MOVE; } | getSourceActions |
242,901 | void (@NotNull JComponent source, @Nullable Transferable data, int action) { if (data == null) return; Component last = DnDManager.getInstance().getLastDropHandler(); if (last != null) { if (!(last instanceof EditorComponentImpl) && !(last instanceof EditorGutterComponentImpl)) { return; } if (last != source && Boolean... | exportDone |
242,902 | void (@NotNull EditorImpl editor) { if (!FileDocumentManager.getInstance().requestWriting(editor.getDocument(), editor.getProject())) { return; } CommandProcessor.getInstance().executeCommand(editor.myProject, () -> ApplicationManager.getApplication().runWriteAction(() -> { Document doc = editor.getDocument(); doc.star... | removeDraggedOutFragment |
242,903 | void (@NotNull DocumentEvent e) { beforeChangedUpdate(e); } | beforeDocumentChange |
242,904 | void (@NotNull DocumentEvent e) { changedUpdate(e); } | documentChanged |
242,905 | void (@NotNull Document document) { bulkUpdateStarted(); } | bulkUpdateStarting |
242,906 | void (@NotNull Document document) { EditorImpl.this.bulkUpdateFinished(); } | bulkUpdateFinished |
242,907 | int () { return EditorDocumentPriorities.EDITOR_DOCUMENT_ADAPTER; } | getPriority |
242,908 | EditorGutter () { return getGutterComponentEx(); } | getGutter |
242,909 | boolean () { return EditorUtil.isRealFileEditor(this) && (Registry.is("editor.distraction.free.mode") || isInPresentationMode()); } | isInDistractionFreeMode |
242,910 | EditorState () { return myState; } | getState |
242,911 | void (@NotNull Map<? super String, ? super String> info) { VisualPosition visual = getCaretModel().getVisualPosition(); info.put("caret", visual.getLine() + ":" + visual.getColumn()); } | putInfo |
242,912 | void (@NotNull EditorMouseEvent event) { if (event.getArea() == EditorMouseEventArea.EDITING_AREA && event.getMouseEvent().isPopupTrigger() && !event.isConsumed()) { for (int i = myPopupHandlers.size() - 1; i >= 0; i--) { if (myPopupHandlers.get(i).handlePopup(event)) break; } } } | invokePopupIfNeeded |
242,913 | void (@NotNull CodeStyleSettingsChangeEvent event) { if (myProject != null) { VirtualFile eventFile = event.getVirtualFile(); if (eventFile != null && !eventFile.equals(getVirtualFile())) { return; } int oldTabSize = EditorUtil.getTabSize(this); mySettings.reinitSettings(); int newTabSize = EditorUtil.getTabSize(this);... | codeStyleSettingsChanged |
242,914 | void () { if (myProject != null && myVirtualFile != null && replace(CONTAINS_BIDI_TEXT, null, Boolean.TRUE)) { EditorNotifications.getInstance(myProject).updateNotifications(myVirtualFile); } } | bidiTextFound |
242,915 | String () { return "EditorImpl[" + FileDocumentManager.getInstance().getFile(myDocument) + "]"; } | toString |
242,916 | void (ScrollPaneUI ui) { super.setUI(ui); // disable standard Swing keybindings setInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); } | setUI |
242,917 | void () { ReadAction.run(() -> { if (isInDistractionFreeMode()) { // re-calc gutter extra size after editor size is set // & layout once again to avoid blinking myGutterComponent.updateSize(true, true); } super.layout(); }); } | layout |
242,918 | void (@NotNull MouseWheelEvent e) { if (EVENT_LOG.isDebugEnabled()) { EVENT_LOG.debug(e.toString()); } if (mySettings.isWheelFontChangeEnabled()) { if (EditorUtil.isChangeFontSize(e)) { boolean isWheelFontChangePersistent = EditorSettingsExternalizable.getInstance().isWheelFontChangePersistent() && !UISettings.getInsta... | processMouseWheelEvent |
242,919 | JScrollBar () { return new OpaqueAwareScrollBar(Adjustable.HORIZONTAL); } | createHorizontalScrollBar |
242,920 | JScrollBar () { return new MyScrollBar(Adjustable.VERTICAL); } | createVerticalScrollBar |
242,921 | void () { super.setupCorners(); setBorder(new TablessBorder()); } | setupCorners |
242,922 | void (float size) { EditorColorsManager.getInstance().getGlobalScheme().setEditorFontSize(size); if (myScheme instanceof MyColorSchemeDelegate) { ((MyColorSchemeDelegate)myScheme).resetEditorFontSize(); } ApplicationManager.getApplication().getMessageBus().syncPublisher(EditorColorsManager.TOPIC).globalSchemeChange(nul... | adjustGlobalFontSize |
242,923 | void (@NotNull Component c, @NotNull Graphics g, int x, int y, int width, int height) { if (c instanceof JComponent) { Insets insets = ((JComponent)c).getInsets(); if (insets.left > 0) { super.paintBorder(c, g, x, y, width, height); } else { g.setColor(UIUtil.getPanelBackground()); g.fillRect(x, y, width, 1); g.setColo... | paintBorder |
242,924 | Insets (Component c) { Container splitters = SwingUtilities.getAncestorOfClass(EditorsSplitters.class, c); boolean thereIsSomethingAbove = !SystemInfo.isMac || UISettings.getInstance().getShowMainToolbar() || UISettings.getInstance().getShowNavigationBar() || toolWindowIsNotEmpty(); //noinspection ConstantConditions Co... | getBorderInsets |
242,925 | boolean () { if (myProject == null) { return false; } return !ToolWindowManagerEx.getInstanceEx(myProject).getIdsOn(ToolWindowAnchor.TOP).isEmpty(); } | toolWindowIsNotEmpty |
242,926 | boolean () { return true; } | isBorderOpaque |
242,927 | void () { myOldHeight = getHeight(); super.revalidate(); } | revalidate |
242,928 | void () { int height = myOldHeight; super.validateTree(); height -= getHeight(); if (height != 0 && !(myOldHeight == 0 && getComponentCount() > 0 && getPermanentHeaderComponent() == getComponent(0))) { myVerticalScrollBar.setValue(myVerticalScrollBar.getValue() - height); } myOldHeight = getHeight(); } | validateTree |
242,929 | void (@NotNull Graphics g, char @NotNull [] data, int start, int end, int x, int y, @NotNull Color color, @NotNull FontInfo fontInfo) { myView.drawChars(g, data, start, end, x, y, color, fontInfo); } | drawChars |
242,930 | void (@NotNull EditorColorsScheme scheme) { } | setColorScheme |
242,931 | void () { Component[] components = getComponents(); Rectangle r = getBounds(); for (Component c : components) { if (c instanceof JScrollPane) { // Main scroll panel: MyScrollPane c.setBounds(0, 0, r.width, r.height); } else { // Floating toolbar: EditorFloatingToolbar Dimension d = c.getPreferredSize(); int rightInsets... | doLayout |
242,932 | Dimension () { return myScrollPane.getPreferredSize(); } | getPreferredSize |
242,933 | void (@NotNull Editor editor, char c, @NotNull DataContext context, @NotNull ActionPlan plan) { if (editor.isViewer() || !editor.getDocument().isWritable()) return; TypedActionHandler handler = myAction.getHandler(); if (handler instanceof TypedActionHandlerEx) { ((TypedActionHandlerEx)handler).beforeExecute(editor, c,... | beforeExecute |
242,934 | void (final @NotNull Editor editor, final char charTyped, final @NotNull DataContext dataContext) { CommandProcessorEx commandProcessorEx = (CommandProcessorEx)CommandProcessor.getInstance(); Project project = CommonDataKeys.PROJECT.getData(dataContext); if (myCurrentCommandToken != null) { throw new IllegalStateExcept... | execute |
242,935 | void () { Document doc = editor.getDocument(); doc.startGuardedBlockChecking(); try { myAction.getHandler().execute(editor, charTyped, dataContext); } catch (ReadOnlyFragmentModificationException e) { EditorActionManager.getInstance().getReadonlyFragmentModificationHandler(doc).handle(e); } finally { doc.stopGuardedBlo... | run |
242,936 | void () { if (myInOuterCommand) { return; } if (myCurrentCommandToken == null) { throw new IllegalStateException("Not in a typed action at this time"); } CommandProcessorEx commandProcessorEx = (CommandProcessorEx)CommandProcessor.getInstance(); Project project = myCurrentCommandToken.getProject(); commandProcessorEx.f... | beginUndoablePostProcessing |
242,937 | ImmutableCharSequence () { return myText; } | getText |
242,938 | void (int begin, int end, String s) { myText = myText.replace(begin, end, s); myReplacements.add(new Replacement(begin, end, s)); if (myCaretOffset == end) { myCaretOffset += s.length() - (end - begin); } } | replace |
242,939 | int () { return myCaretOffset; } | getCaretOffset |
242,940 | void (int offset) { myCaretOffset = offset; } | setCaretOffset |
242,941 | List<Replacement> () { return Collections.unmodifiableList(myReplacements); } | getReplacements |
242,942 | int () { return myCaretOffset - myEditor.getCaretModel().getOffset(); } | getCaretShift |
242,943 | int () { return myBegin; } | getBegin |
242,944 | int () { return myEnd; } | getEnd |
242,945 | String () { return myText; } | getText |
242,946 | boolean () { return FoldingModelImpl.this.isFoldingEnabled(); } | isFoldingEnabled |
242,947 | boolean () { return myEditor.getInlayModel().hasBlockElements(); } | hasBlockInlays |
242,948 | int (int foldStartOffset, int foldEndOffset) { int sum = 0; for (Inlay<?> inlay : myEditor.getInlayModel().getBlockElementsInRange(foldStartOffset, foldEndOffset)) { int offset = inlay.getOffset(); boolean relatedToPrecedingText = inlay.isRelatedToPrecedingText(); if ((relatedToPrecedingText || offset != foldStartOffse... | getFoldedBlockInlaysHeight |
242,949 | int () { return myEditor.getLineHeight(); } | getLineHeight |
242,950 | int (@Nullable FoldRegion o) { return o == null ? 0 : o.getStartOffset() * 31 + o.getEndOffset(); } | hashCode |
242,951 | boolean (@Nullable FoldRegion o1, @Nullable FoldRegion o2) { return o1 == o2 || (o1 != null && o2 != null && o1.getStartOffset() == o2.getStartOffset() && o1.getEndOffset() == o2.getEndOffset()); } | equals |
242,952 | List<FoldRegion> (@NotNull FoldingGroup group) { return (List<FoldRegion>)myGroups.get(group); } | getGroupedRegions |
242,953 | void () { assertIsDispatchThreadForEditor(); myFoldTree.clearDocumentRangesModificationStatus(); } | clearDocumentRangesModificationStatus |
242,954 | boolean (@NotNull FoldRegion region) { assertReadAccess(); return region instanceof FoldRegionImpl && ((FoldRegionImpl)region).hasDocumentRegionChanged(); } | hasDocumentRegionChangedFor |
242,955 | int (@NotNull FoldingGroup group) { List<FoldRegion> regions = getGroupedRegions(group); int endOffset = 0; for (FoldRegion region : regions) { if (region.isValid()) { endOffset = Math.max(endOffset, region.getEndOffset()); } } return endOffset; } | getEndOffset |
242,956 | void () { myFoldTextAttributes = myEditor.getColorsScheme().getAttributes(EditorColors.FOLDED_TEXT_ATTRIBUTES); } | updateTextAttributes |
242,957 | boolean () { return myIsFoldingEnabled; } | isFoldingEnabled |
242,958 | boolean (int offset) { assertReadAccess(); return getCollapsedRegionAtOffset(offset) != null; } | isOffsetCollapsed |
242,959 | boolean (int offset) { assertReadAccess(); FoldRegion region = getCollapsedRegionAtOffset(offset); return region != null && region.getStartOffset() < offset; } | isOffsetInsideCollapsedRegion |
242,960 | void () { ThreadingAssertions.assertEventDispatchThread(); } | assertIsDispatchThreadForEditor |
242,961 | void () { ApplicationManager.getApplication().assertReadAccessAllowed(); } | assertReadAccess |
242,962 | void (FoldRegion region) { if (!(region instanceof FoldRegionImpl)) { throw new IllegalArgumentException("Only regions created by this instance of FoldingModel are accepted"); } } | assertOurRegion |
242,963 | void (@NotNull FoldRegion region) { region.putUserData(HIDE_GUTTER_RENDERER_FOR_COLLAPSED, Boolean.TRUE); } | hideGutterRendererForCollapsedRegion |
242,964 | void (boolean isEnabled) { assertIsDispatchThreadForEditor(); myIsFoldingEnabled = isEnabled; } | setFoldingEnabled |
242,965 | FoldRegion (int startOffset, int endOffset, @NotNull String placeholderText) { return createFoldRegion(startOffset, endOffset, placeholderText, null, false); } | addFoldRegion |
242,966 | void (@NotNull Runnable operation, boolean allowMovingCaret, boolean keepRelativeCaretPosition) { runBatchFoldingOperation(operation, !allowMovingCaret, true, keepRelativeCaretPosition); } | runBatchFoldingOperation |
242,967 | void (@NotNull Runnable operation, boolean moveCaret) { runBatchFoldingOperation(operation, false, moveCaret, true); } | runBatchFoldingOperation |
242,968 | void (boolean widthChanged, boolean heightChanged, boolean gutterMarkChanged, boolean repaintRequested) { if (heightChanged) { updateCachedOffsets(); myEditor.getCaretModel().updateVisualPosition(); } if (widthChanged || heightChanged) { myEditor.recalculateSizeAndRepaint(); } else if (repaintRequested) { myEditor.getC... | update |
242,969 | void (@NotNull FoldRegion region) { assertIsDispatchThreadForEditor(); assertOurRegion(region); if (!myIsBatchFoldingProcessing) { LOG.error("Fold regions must be added or removed inside batchFoldProcessing() only."); } onFoldProcessingStart(); ((FoldRegionImpl)region).setExpanded(true, false); onFoldRegionStateChange(... | removeFoldRegion |
242,970 | void (@NotNull FoldRegion region) { myGroups.remove(region.getGroup(), region); } | removeRegionFromGroup |
242,971 | void () { if (!myIsBatchFoldingProcessing) { LOG.error("Fold regions must be added or removed inside batchFoldProcessing() only."); return; } FoldRegion[] regions = getAllFoldRegions(); if (regions.length > 0) { onFoldProcessingStart(); } for (FoldRegion region : regions) { if (!region.isExpanded()) onFoldRegionStateCh... | clearFoldRegions |
242,972 | void () { myGroups.clear(); myFoldTree.clear(); } | doClearFoldRegions |
242,973 | void (boolean moveCaretFromCollapsedRegion, boolean adjustScrollingPosition) { clearCachedValues(); for (FoldingListener listener : myListeners) { listener.onFoldProcessingEnd(); } myEditor.updateCaretCursor(); myEditor.recalculateSizeAndRepaint(); ((EditorGutterComponentImpl)myEditor.getGutterComponentEx()).updateSize... | onFoldProcessingEnd |
242,974 | void () { if (!myEditor.getDocument().isInBulkUpdate()) { myFoldTree.rebuild(); } } | rebuild |
242,975 | boolean () { return myIsBatchFoldingProcessing; } | isInBatchFoldingOperation |
242,976 | void () { myFoldTree.updateCachedOffsets(); } | updateCachedOffsets |
242,977 | int (int offset) { if (!myDocumentChangeProcessed && myEditor.getDocument().isInEventsHandling()) { // There is a possible case that this method is called on document update before fold regions are recalculated. // We return zero in such situations then. return 0; } return myFoldTree.getFoldedLinesCountBefore(offset); ... | getFoldedLinesCountBefore |
242,978 | IntPair (int offset, int prevFoldRegionIndex) { return myFoldTree.getCustomRegionsYAdjustment(offset, prevFoldRegionIndex); } | getCustomRegionsYAdjustment |
242,979 | boolean (int startOffset, int endOffset) { return myFoldTree.intersectsRegion(startOffset, endOffset); } | intersectsRegion |
242,980 | int (int offset) { return myFoldTree.getLastTopLevelIndexBefore(offset); } | getLastCollapsedRegionBefore |
242,981 | TextAttributes () { return myFoldTextAttributes; } | getPlaceholderAttributes |
242,982 | void () { myFoldTree.clearCachedValues(); } | clearCachedValues |
242,983 | void (@NotNull DocumentEvent event) { if (myIsBatchFoldingProcessing) LOG.error("Document changes are not allowed during batch folding update"); myDocumentChangeProcessed = false; } | beforeDocumentChange |
242,984 | void (@NotNull DocumentEvent event) { try { if (event.getDocument().isInBulkUpdate()) return; validateAffectedCustomRegions(); if (DocumentEventUtil.isMoveInsertion(event)) { myFoldTree.rebuild(); } else { updateCachedOffsets(); } } finally { myDocumentChangeProcessed = true; } } | documentChanged |
242,985 | void () { if (myComplexDocumentChange) { // validate all custom fold regions myRegionTree.processAll(r -> { if (r instanceof CustomFoldRegionImpl) { myAffectedCustomRegions.add((CustomFoldRegionImpl)r); } return true; }); myComplexDocumentChange = false; } for (CustomFoldRegionImpl region : myAffectedCustomRegions) { i... | validateAffectedCustomRegions |
242,986 | int () { return EditorDocumentPriorities.FOLD_MODEL; } | getPriority |
242,987 | void (@NotNull Inlay<?> inlay, int changeFlags) { if ((inlay.getPlacement() == Inlay.Placement.ABOVE_LINE || inlay.getPlacement() == Inlay.Placement.BELOW_LINE) && (changeFlags & InlayModel.ChangeFlags.HEIGHT_CHANGED) != 0) { myFoldTree.clearCachedInlayValues(); } } | onUpdated |
242,988 | void (@NotNull FoldingListener listener, @NotNull Disposable parentDisposable) { myListeners.add(listener); Disposer.register(parentDisposable, () -> myListeners.remove(listener)); } | addListener |
242,989 | void () { if (!myFoldRegionsProcessed) { for (FoldingListener listener : myListeners) { listener.onFoldProcessingStart(); } myFoldRegionsProcessed = true; } } | onFoldProcessingStart |
242,990 | void (@NotNull FoldRegion foldRegion) { for (FoldingListener listener : myListeners) { listener.onFoldRegionStateChange(foldRegion); } } | onFoldRegionStateChange |
242,991 | void (@NotNull FoldRegion foldRegion) { for (FoldingListener listener : myListeners) { listener.beforeFoldRegionDisposed(foldRegion); } } | beforeFoldRegionDisposed |
242,992 | void (@NotNull FoldRegion foldRegion) { for (FoldingListener listener : myListeners) { listener.beforeFoldRegionRemoved(foldRegion); } } | beforeFoldRegionRemoved |
242,993 | String () { return Arrays.toString(myFoldTree.fetchTopLevel()); } | dumpState |
242,994 | String () { return dumpState(); } | toString |
242,995 | long () { return myExpansionCounter.get(); } | getModificationCount |
242,996 | AtomicBoolean () { return isZombieRaised; } | getIsZombieRaised |
242,997 | boolean (Editor editor) { return docStamp == editor.getDocument().getModificationStamp(); } | isUpToDate |
242,998 | FoldRegionImpl (@NotNull IntervalNode<FoldRegionImpl> node) { assert node.intervals.size() == 1; FoldRegionImpl region = node.intervals.get(0).get(); assert region != null; return region; } | getRegion |
242,999 | int (@NotNull IntervalNode<FoldRegionImpl> i1, @NotNull IntervalNode<FoldRegionImpl> i2) { int baseResult = super.compareEqualStartIntervals(i1, i2); if (baseResult != 0) { return baseResult; } boolean c1 = i1.isFlagSet(FRNode.CUSTOM_FLAG); boolean c2 = i2.isFlagSet(FRNode.CUSTOM_FLAG); return c1 == c2 ? 0 : c1 ? 1 : -... | compareEqualStartIntervals |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.