Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
241,900 | void (JTextComponent jTextComponent) { } | install |
241,901 | void (JTextComponent jTextComponent) { } | deinstall |
241,902 | void (Graphics graphics) { } | paint |
241,903 | void (ChangeListener changeListener) { } | addChangeListener |
241,904 | void (ChangeListener changeListener) { } | removeChangeListener |
241,905 | boolean () { return true; } | isVisible |
241,906 | void (boolean visible) { } | setVisible |
241,907 | boolean () { return true; } | isSelectionVisible |
241,908 | void (boolean visible) { } | setSelectionVisible |
241,909 | void (Point point) { } | setMagicCaretPosition |
241,910 | void (int rate) { } | setBlinkRate |
241,911 | int () { return 250; } | getBlinkRate |
241,912 | int () { return myEditor.getCaretModel().getOffset(); } | getDot |
241,913 | int () { return myEditor.getSelectionModel().getSelectionStart(); } | getMark |
241,914 | void (int offset) { if (!myEditor.isDisposed()) { myEditor.getCaretModel().moveToOffset(offset); } } | setDot |
241,915 | void (int offset) { if (!myEditor.isDisposed()) { myEditor.getCaretModel().moveToOffset(offset); } } | moveDot |
241,916 | int (JTextComponent tc, Point pt) { LogicalPosition logicalPosition = myEditor.xyToLogicalPosition(pt); return myEditor.logicalPositionToOffset(logicalPosition); } | viewToModel |
241,917 | int (JTextComponent tc, Point pt, Position.Bias[] ignored) { return viewToModel(tc, pt); } | viewToModel |
241,918 | int (JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) { notSupported(); return 0; } | getNextVisualPositionFrom |
241,919 | void (JTextComponent t, int p0, int p1) { myEditor.repaint(p0, p1); } | damageRange |
241,920 | void (JTextComponent t, int p0, int p1, Position.Bias ignored1, Position.Bias ignored2) { damageRange(t, p0, p1); } | damageRange |
241,921 | void () { myEditor.getDocument().removeDocumentListener(AccessibleEditorComponentImpl.this); } | dispose |
241,922 | void (@NotNull CaretEvent e) { Caret caret = e.getCaret(); if (caret != myEditor.getCaretModel().getPrimaryCaret()) { return; } int dot = caret.getOffset(); int mark = caret.getLeadSelectionOffset(); if (myCaretPos != dot) { ThreadingAssertions.assertEventDispatchThread(); firePropertyChange(ACCESSIBLE_CARET_PROPERTY, ... | caretPositionChanged |
241,923 | void (final @NotNull DocumentEvent event) { final Integer pos = event.getOffset(); if (ApplicationManager.getApplication().isDispatchThread()) { firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, pos); if (SystemInfo.isMac) { // For MacOSX we also need to fire a JTextComponent event to anyone listening // to our Docume... | documentChanged |
241,924 | AccessibleRole () { // See comment on TextAccessibleRole class. if (SystemInfo.isMac) { return TextAccessibleRole.TEXT_AREA; } else { return AccessibleRole.TEXT; } } | getAccessibleRole |
241,925 | AccessibleText () { if (myEditor.isDisposed()) return null; return this; } | getAccessibleText |
241,926 | AccessibleEditableText () { if (myEditor.isDisposed()) return null; return this; } | getAccessibleEditableText |
241,927 | AccessibleStateSet () { AccessibleStateSet states = super.getAccessibleStateSet(); if (myEditor.getDocument().isWritable()) { states.add(AccessibleState.EDITABLE); } states.add(AccessibleState.MULTI_LINE); return states; } | getAccessibleStateSet |
241,928 | int (Point point) { LogicalPosition logicalPosition = myEditor.xyToLogicalPosition(point); return myEditor.logicalPositionToOffset(logicalPosition); } | getIndexAtPoint |
241,929 | Rectangle (int offset) { // Since we report the very end of the document as being 1 character past the document // length, we need to validate the offset passed back by the screen reader. if (offset < 0 || offset > myEditor.getDocument().getTextLength() - 1) { return null; } LogicalPosition pos = myEditor.offsetToLogic... | getCharacterBounds |
241,930 | int () { return myEditor.getDocument().getTextLength(); } | getCharCount |
241,931 | int () { return myEditor.getCaretModel().getOffset(); } | getCaretPosition |
241,932 | AttributeSet (int index) { return new SimpleAttributeSet(); } | getCharacterAttribute |
241,933 | int () { return myEditor.getSelectionModel().getSelectionStart(); } | getSelectionStart |
241,934 | int () { return myEditor.getSelectionModel().getSelectionEnd(); } | getSelectionEnd |
241,935 | void (String s) { setText(s); } | setTextContents |
241,936 | void (int index, String s) { editDocumentSafely(index, 0, s); } | insertTextAtIndex |
241,937 | String (int startIndex, int endIndex) { return myEditor.getDocument().getCharsSequence().subSequence(startIndex, endIndex).toString(); } | getTextRange |
241,938 | void (int startIndex, int endIndex) { editDocumentSafely(startIndex, endIndex - startIndex, null); } | delete |
241,939 | void (int startIndex, int endIndex) { myEditor.getSelectionModel().setSelection(startIndex, endIndex); DataContext dataContext = DataManager.getInstance().getDataContext(EditorComponentImpl.this); CutProvider cutProvider = myEditor.getCutProvider(); if (cutProvider.isCutEnabled(dataContext)) { cutProvider.performCut(da... | cut |
241,940 | void (int startIndex) { myEditor.getCaretModel().moveToOffset(startIndex); DataContext dataContext = DataManager.getInstance().getDataContext(EditorComponentImpl.this); PasteProvider pasteProvider = myEditor.getPasteProvider(); if (pasteProvider.isPasteEnabled(dataContext)) { pasteProvider.performPaste(dataContext); } ... | paste |
241,941 | void (int startIndex, int endIndex, String s) { editDocumentSafely(startIndex, endIndex, s); } | replaceText |
241,942 | void (int startIndex, int endIndex) { myEditor.getSelectionModel().setSelection(startIndex, endIndex); myEditor.getCaretModel().moveToOffset(endIndex); } | selectText |
241,943 | void (int startIndex, int endIndex, AttributeSet as) { } | setAttributes |
241,944 | int (int offset) { Document document = myEditor.getDocument(); if (offset == 0) { return 0; } int lineNumber = myEditor.offsetToLogicalPosition(offset).line; return document.getLineStartOffset(lineNumber); } | getLineAtOffsetStart |
241,945 | int (int offset) { Document document = myEditor.getDocument(); if (offset == 0) { return 0; } int lineNumber = myEditor.offsetToLogicalPosition(offset).line; return document.getLineEndOffset(lineNumber); } | getLineAtOffsetEnd |
241,946 | int (int offset) { Document document = myEditor.getDocument(); if (offset == 0) { return 0; } int lineNumber = myEditor.offsetToLogicalPosition(offset).line; CharSequence text = document.getCharsSequence(); int newOffset = offset - 1; int minOffset = lineNumber > 0 ? document.getLineEndOffset(lineNumber - 1) : 0; boole... | getWordAtOffsetStart |
241,947 | int (int offset) { Document document = myEditor.getDocument(); CharSequence text = document.getCharsSequence(); if (offset >= document.getTextLength() - 1 || document.getLineCount() == 0) { return offset; } int newOffset = offset + 1; int lineNumber = myEditor.offsetToLogicalPosition(offset).line; int maxOffset = docum... | getWordAtOffsetEnd |
241,948 | void () { ActionManager.getInstance().tryToExecute(ActionManager.getInstance().getAction("ShowPopupMenu"), null, EditorComponentImpl.this.getEditor().getContentComponent(), null, true); } | doShowContextMenu |
241,949 | Container () { return getParent(); } | getDelegateParent |
241,950 | int (Point point) { return ((AccessibleText) getDelegate()).getIndexAtPoint(point); } | getIndexAtPoint |
241,951 | Rectangle (int i) { return ((AccessibleText) getDelegate()).getCharacterBounds(i); } | getCharacterBounds |
241,952 | int () { return ((AccessibleText) getDelegate()).getCharCount(); } | getCharCount |
241,953 | int () { return ((AccessibleText) getDelegate()).getCaretPosition(); } | getCaretPosition |
241,954 | String (int part, int index) { return ((AccessibleText) getDelegate()).getAtIndex(part, index); } | getAtIndex |
241,955 | String (int part, int index) { return ((AccessibleText) getDelegate()).getAfterIndex(part, index); } | getAfterIndex |
241,956 | String (int part, int index) { return ((AccessibleText) getDelegate()).getBeforeIndex(part, index); } | getBeforeIndex |
241,957 | AttributeSet (int i) { return ((AccessibleText) getDelegate()).getCharacterAttribute(i); } | getCharacterAttribute |
241,958 | int () { return ((AccessibleText) getDelegate()).getSelectionStart(); } | getSelectionStart |
241,959 | int () { return ((AccessibleText) getDelegate()).getSelectionEnd(); } | getSelectionEnd |
241,960 | String () { return ((AccessibleText) getDelegate()).getSelectedText(); } | getSelectedText |
241,961 | EditorEmbeddedComponentManager () { return ourInstance; } | getInstance |
241,962 | ComponentInlays (@NotNull EditorEx editor) { if (!COMPONENT_INLAYS_KEY.isIn(editor)) COMPONENT_INLAYS_KEY.set(editor, new ComponentInlays(editor)); return COMPONENT_INLAYS_KEY.get(editor); } | getComponentInlaysFor |
241,963 | boolean () { return isResizableFromRight() || isResizableFromBottom(); } | isResizable |
241,964 | ResizePolicy () { return ourAny; } | any |
241,965 | ResizePolicy () { return ourNone; } | none |
241,966 | boolean () { return (myFlags & RIGHT) != 0; } | isResizableFromRight |
241,967 | boolean () { return (myFlags & BOTTOM) != 0; } | isResizableFromBottom |
241,968 | int (@NotNull Inlay inlay) { return Math.max(getHeight(), 0); } | calcHeightInPixels |
241,969 | int (@NotNull Inlay inlay) { return Math.max(getWidth(), 0); } | calcWidthInPixels |
241,970 | void (Graphics g) { Graphics2D g2d = (Graphics2D)g; Composite old = g2d.getComposite(); try { g2d.setComposite(AlphaComposite.SrcOver); super.paint(g); } finally { g2d.setComposite(old); } } | paint |
241,971 | void () { ReadAction.run(() -> { synchronizeBoundsWithInlay(); super.doLayout(); }); } | doLayout |
241,972 | void () { synchronizeBoundsWithInlay(); super.validate(); } | validate |
241,973 | void () { if (myInlay != null && !myResizeListener.isResizeInProgress(this) && !myInlay.getEditor().getDocument().isInBulkUpdate()) { Rectangle inlayBounds = myInlay.getBounds(); boolean shouldUpdateInlay; if (inlayBounds != null) { inlayBounds.setLocation(inlayBounds.x + verticalScrollbarLeftShift(), inlayBounds.y); i... | synchronizeBoundsWithInlay |
241,974 | void (@Nullable Inlay<MyRenderer> inlay) { myInlay = inlay; } | setInlay |
241,975 | int () { Object flipProperty = myEditorScrollPane.getClientProperty(JBScrollPane.Flip.class); if (flipProperty == JBScrollPane.Flip.HORIZONTAL || flipProperty == JBScrollPane.Flip.BOTH) { return myEditorScrollPane.getVerticalScrollBar().getWidth(); } return 0; } | verticalScrollbarLeftShift |
241,976 | void (ComponentEvent e) { if (e.getSource() instanceof MyRenderer renderer) { revalidateComponents(renderer.getBounds().y); } } | componentResized |
241,977 | void () { revalidateComponents(Integer.MIN_VALUE); } | revalidateComponents |
241,978 | void (int yTop) { JComponent parent = myEditor.getContentComponent(); for (int i = 0; i < parent.getComponentCount(); ++i) { Component component = parent.getComponent(i); if (component instanceof MyRenderer && component.getY() >= yTop) { component.revalidate(); } } } | revalidateComponents |
241,979 | void () { Disposer.register(((EditorImpl)myEditor).getDisposable(), this); myEditor.getFoldingModel().addListener(new FoldingListener() { @Override public void onFoldProcessingEnd() { revalidateComponents(); } }, this); myEditor.getDocument().addDocumentListener(new DocumentListener() { private int linesBefore; @Overri... | setup |
241,980 | void () { revalidateComponents(); } | onFoldProcessingEnd |
241,981 | void (@NotNull DocumentEvent event) { linesBefore = event.getDocument().getLineCount(); } | beforeDocumentChange |
241,982 | void (@NotNull DocumentEvent event) { if (linesBefore != event.getDocument().getLineCount() && !event.getDocument().isInBulkUpdate()) { int y = myEditor.logicalPositionToXY(new LogicalPosition(event.getDocument().getLineNumber(event.getOffset()), 0)).y; revalidateComponents(y); } } | documentChanged |
241,983 | void (@NotNull Document document) { revalidateComponents(); } | bulkUpdateFinished |
241,984 | void (@NotNull Inlay<?> inlay, int changeFlags) { if ((changeFlags & InlayModel.ChangeFlags.HEIGHT_CHANGED) != 0 && inlay.getRenderer() instanceof MyRenderer) { JComponent component = (JComponent)inlay.getRenderer(); // This method can be called while validating the same component. Prevent resetting parent validation f... | onUpdated |
241,985 | void (@NotNull Inlay<?> inlay) { Disposer.dispose(inlay); } | onRemoved |
241,986 | void (ComponentEvent e) { revalidateComponents(); } | componentResized |
241,987 | void () { // All inlays are already registered in the disposable. } | dispose |
241,988 | void (EditorMouseEvent e) { ResizeInfo info = getInfoForResizeUnder(e.getMouseEvent().getPoint()); if (info == null) { resetCursor(); return; } myEditor.setCustomCursor(ComponentInlays.this, info.direction.cursor); } | mouseMoved |
241,989 | void (EditorMouseEvent event) { Point point = event.getMouseEvent().getPoint(); info = getInfoForResizeUnder(point); if (info == null) return; event.consume(); } | mousePressed |
241,990 | void (@NotNull EditorMouseEvent event) { if (info != null) { info.inlay.getRenderer().revalidate(); info = null; } resetCursor(); } | mouseReleased |
241,991 | void (@NotNull EditorMouseEvent event) { if (info == null) return; Point currentPoint = event.getMouseEvent().getPoint(); MyRenderer renderer = info.inlay.getRenderer(); int xDelta = info.direction.xMultiplier * (currentPoint.x - renderer.getX() - renderer.getWidth()); int yDelta = info.direction.yMultiplier * (current... | mouseDragged |
241,992 | void (@NotNull EditorMouseEvent event) { resetCursor(); } | mouseExited |
241,993 | void (@NotNull Rectangle inlayBounds) { Rectangle contentComponentBounds = myEditor.getScrollPane().getViewport().getViewRect(); int compMinX = contentComponentBounds.x; int compMaxX = compMinX + contentComponentBounds.width; int compMinY = contentComponentBounds.y; int compMaxY = compMinY + contentComponentBounds.heig... | scrollTo |
241,994 | void () { if (info == null) myEditor.setCustomCursor(ComponentInlays.this, null); } | resetCursor |
241,995 | boolean (int value, int coordinate) { return isInside(value, coordinate, coordinate); } | isNearTo |
241,996 | boolean (int value, int min, int max) { return value > min - RESIZE_POINT_DELTA && value < max + RESIZE_POINT_DELTA; } | isInside |
241,997 | int () { return EditorDocumentPriorities.INLAY_MODEL; } | getPriority |
241,998 | void (@NotNull DocumentEvent event) { if (myEditor.getDocument().isInBulkUpdate()) return; if (myInBatchMode) LOG.error("Document shouldn't be changed during batch inlay operation"); int offset = event.getOffset(); if (myConsiderCaretPositionOnDocumentUpdates && event.getOldLength() == 0 && offset == myEditor.getCaretM... | beforeDocumentChange |
241,999 | void (@NotNull DocumentEvent event) { if (myInlaysAtCaret != null) { for (Inlay<?> inlay : myInlaysAtCaret) { ((InlayImpl<?, ?>)inlay).setStickingToRight(inlay.isRelatedToPrecedingText()); } myInlaysAtCaret = null; } if (DocumentEventUtil.isMoveInsertion(event)) { for (InlayImpl<?, ?> inlay : myInlaysInvalidatedOnMove)... | documentChanged |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.