Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
244,600 | Icon () { return myIcon; } | getIcon |
244,601 | String () { return myPrefix; } | getPrefix |
244,602 | String[] () { return myLines; } | getLines |
244,603 | void () { TreeUIHelper.getInstance().installTreeSpeedSearch(this); } | installSpeedSearch |
244,604 | void (boolean filteringMode) { myFilteringMode = filteringMode; } | setFilteringMode |
244,605 | void (String pattern) { super.onSearchFieldUpdated(pattern); if (!myFilteringMode) return; RowSorter<? extends TableModel> sorter0 = myComponent.getRowSorter(); if (!(sorter0 instanceof TableRowSorter)) return; //noinspection unchecked TableRowSorter<TableModel> sorter = (TableRowSorter<TableModel>)sorter0; if (StringU... | onSearchFieldUpdated |
244,606 | boolean (Entry<? extends TableModel, ? extends Integer> entry) { return isMatchingRow(entry.getIdentifier(), pattern); } | include |
244,607 | boolean () { return myFilteringMode; } | isStickySearch |
244,608 | void () { super.hidePopup(); if (!myFilteringMode) return; Cell prev = UIUtil.getClientProperty(myComponent, SELECTION_BEFORE_KEY); int viewRow = myComponent.getSelectedRow(); // will be -1 if there is no matching elements (not filtered by rowFilter) if (viewRow > -1) { // keep selection as is } else if (prev != null &... | hidePopup |
244,609 | SearchPopup (String s) { // table with checkboxes may use SPACE-bound action to toggle checkboxes boolean ignoreSpaceTyped = myComponent.getActionForKeyStroke(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0)) != null; return new SearchPopup(s) { @Override public void processKeyEvent(KeyEvent e) { if (ignoreSpaceTyped && e.... | createPopup |
244,610 | void (KeyEvent e) { if (ignoreSpaceTyped && e.getModifiersEx() == 0 && e.getID() == KeyEvent.KEY_TYPED && e.getKeyChar() == ' ') { return; } super.processKeyEvent(e); } | processKeyEvent |
244,611 | boolean (int modelRow, String pattern) { return true; } | isMatchingRow |
244,612 | void (@NotNull String notificationName, @NotNull String title, @NotNull String text) { if (NotificationsConfigurationImpl.getInstanceImpl().SYSTEM_NOTIFICATIONS && !ApplicationManager.getApplication().isActive()) { Notifier notifier = myNotifier.getValue(); if (notifier != null) { notifier.notify(notificationName, titl... | notify |
244,613 | void (Graphics g) { Insets insets = getInsets(); Graphics2D g2d = (Graphics2D)g.create(); double scale = JBUIScale.sysScale((Graphics2D)g); double devTop = insets.top * scale; // A workaround for IDEA-183253. If insets.top is *.5 in device space, then move up the image by one device pixel. if (devTop + 0.5 == Math.floo... | paintComponent |
244,614 | void (@NotNull Component parent, @NotNull Rectangle bounds, @NotNull Component child, @NotNull Container validationParent) { validationParent.add(parent); parent.setBounds(bounds); parent.validate(); child.setLocation(SwingUtilities.convertPoint(child, 0, 0, parent)); validationParent.remove(parent); } | setRelativeBounds |
244,615 | void (MouseEvent event) { MouseEventAdapter.redispatch(event, myComponent); } | handle |
244,616 | void (MouseEvent event) { } | mouseEntered |
244,617 | void (MouseEvent event) { // don't hide the hint if mouse exited to owner component if (myComponent.getMousePosition() == null) { hideHint(); } } | mouseExited |
244,618 | void (MouseEvent event) { handleMouseEvent(event, MouseEvent.MOUSE_MOVED != event.getID()); } | handle |
244,619 | void (MouseEvent event) { } | mouseClicked |
244,620 | void (MouseEvent event) { // don't hide the hint if mouse exited to it if (Registry.is("ide.hide.expandable.tooltip.owner.mouse.exit") || myTipComponent.getMousePosition() == null) { hideHint(); } } | mouseExited |
244,621 | void (FocusEvent e) { onFocusLost(); } | focusLost |
244,622 | void (FocusEvent e) { updateCurrentSelection(); } | focusGained |
244,623 | void (ComponentEvent e) { hideHint(); } | componentHidden |
244,624 | void (ComponentEvent e) { updateCurrentSelectionOnMoveOrResize(); } | componentMoved |
244,625 | void (ComponentEvent e) { updateCurrentSelectionOnMoveOrResize(); } | componentResized |
244,626 | void (HierarchyEvent e) { updateCurrentSelectionOnMoveOrResize(); } | ancestorMoved |
244,627 | void (HierarchyEvent e) { updateCurrentSelectionOnMoveOrResize(); } | ancestorResized |
244,628 | void (HierarchyEvent e) { hideHint(); } | hierarchyChanged |
244,629 | void () { hideHint(); } | onFocusLost |
244,630 | void (boolean enabled) { myEnabled = enabled; if (!isEnabled()) hideHint(); } | setEnabled |
244,631 | boolean () { return myEnabled; } | isEnabled |
244,632 | void (int borderArc) { this.borderArc = borderArc; } | setBorderArc |
244,633 | Collection<KeyType> () { return myKey == null ? Collections.emptyList() : Collections.singleton(myKey); } | getExpandedItems |
244,634 | void () { if (ClientProperty.isTrue(myComponent, IGNORE_ITEM_SELECTION)) { hideHint(); } else { updateCurrentSelection(); } } | updateCurrentSelectionOnMoveOrResize |
244,635 | void () { handleSelectionChange(myKey, true); } | updateCurrentSelection |
244,636 | void (MouseEvent e, boolean forceUpdate) { if (ClientProperty.isTrue(myComponent, IGNORE_MOUSE_HOVER)) return; KeyType selected = getCellKeyForPoint(e.getPoint()); if (forceUpdate || !Comparing.equal(myKey, selected)) { handleSelectionChange(selected, true); } // Temporary workaround if (e.getClickCount() == 2) { hideH... | handleMouseEvent |
244,637 | void (KeyType selected) { handleSelectionChange(ClientProperty.isTrue(myComponent, IGNORE_ITEM_SELECTION) ? myKey : selected, false); } | handleSelectionChange |
244,638 | void (final KeyType selected, final boolean processIfUnfocused) { if (!EventQueue.isDispatchThread()) { return; } myUpdateAlarm.cancelAllRequests(); if (selected == null || !isHandleSelectionEnabled(selected, processIfUnfocused)) { hideHint(); return; } if (!selected.equals(myKey)) { hideHint(); } myUpdateAlarm.addRequ... | handleSelectionChange |
244,639 | boolean (@NotNull KeyType selected, boolean processIfUnfocused) { return isEnabled() && !ScreenReader.isActive() && myComponent.isEnabled() && myComponent.isShowing() && myComponent.getVisibleRect().intersects(getVisibleRect(selected)) && (processIfUnfocused || myComponent.isFocusOwner()); } | isHandleSelectionEnabled |
244,640 | void (@NotNull KeyType selected, boolean processIfUnfocused) { if (!isHandleSelectionEnabled(selected, processIfUnfocused)) { hideHint(); return; } myKey = selected; Point location = createToolTipImage(myKey); if (location == null) { hideHint(); } else { Rectangle bounds = new Rectangle(location, myTipComponent.getPref... | doHandleSelectionChange |
244,641 | boolean () { Window window = SwingUtilities.getWindowAncestor(myComponent); return UIUtil.isSimpleWindow(window) && !isHintsAllowed(window); } | isPopup |
244,642 | boolean (Window window) { if (window instanceof RootPaneContainer) { final JRootPane pane = ((RootPaneContainer)window).getRootPane(); if (pane != null) { return Boolean.TRUE.equals(pane.getClientProperty(AbstractPopup.SHOW_HINTS)); } } return false; } | isHintsAllowed |
244,643 | boolean (Window window) { return window != null && (window.isFocused() || isFocused(window.getOwner())); } | isFocused |
244,644 | boolean (Rectangle bounds) { Window owner = SwingUtilities.getWindowAncestor(myComponent); Window popup = SwingUtilities.getWindowAncestor(myTipComponent); Window focus = WindowManagerEx.getInstanceEx().getMostRecentFocusedWindow(); if (focus == owner.getOwner()) { focus = null; // do not check intersection with parent... | noIntersections |
244,645 | void () { myUpdateAlarm.cancelAllRequests(); if (myPopup.isVisible()) { myPopup.setVisible(false); repaintKeyItem(); } myKey = null; } | hideHint |
244,646 | boolean () { return myPopup.isVisible(); } | isShowing |
244,647 | void () { if (myKeyItemBounds != null) { myComponent.repaint(myKeyItemBounds); } } | repaintKeyItem |
244,648 | SelectablePanel (@NotNull JComponent renderer) { Component result = renderer; while (result instanceof ExpandedItemRendererComponentWrapper) { result = ExpandedItemRendererComponentWrapper.unwrap(result); } if (result instanceof GroupedElementsRenderer.MyComponent myComponent) { result = myComponent.getRenderer().getIt... | findSelectablePanel |
244,649 | boolean () { return true; } | isPaintBorder |
244,650 | Color () { return JBColor.border(); } | getBorderColor |
244,651 | void (int height, int width, Graphics2D g) { g.setColor(myComponent.getBackground()); g.fillRect(0, 0, width, height); } | doFillBackground |
244,652 | void (Component rComponent, Rectangle cellBounds, Graphics2D g, KeyType key) { myRendererPane.paintComponent(g, rComponent, myComponent, 0, 0, cellBounds.width, cellBounds.height, true); } | doPaintTooltipImage |
244,653 | Rectangle (KeyType key) { return myComponent.getVisibleRect(); } | getVisibleRect |
244,654 | Rectangle (@NotNull Container child, @NotNull JComponent parent) { List<Container> chain = new ArrayList<>(); Container container = child; while (container != parent) { chain.add(container); container = container.getParent(); if (container == null) { throw new IllegalArgumentException("Source is not part of " + parent)... | calcRectInParent |
244,655 | EditorColorsScheme (final JTable table) { return getEditorPanel(table).getEditor().getColorsScheme(); } | getColorScheme |
244,656 | void (@NotNull EditorEx editor, JTable table, Object value, boolean selected, int row, int column) { String text = getText(table, value, row, column); getEditorPanel(table).setText(text, getTextAttributes(table, value, row, column), selected); } | customizeEditor |
244,657 | Component (JTable table, Object value, boolean selected, boolean focused, int row, int column) { RendererComponent panel = getEditorPanel(table); EditorEx editor = panel.getEditor(); editor.getColorsScheme().setEditorFontSize(table.getFont().getSize()); editor.getColorsScheme().setColor(EditorColors.SELECTION_BACKGROUN... | getTableCellRendererComponent |
244,658 | RendererComponent (final JTable table) { RendererComponent panel = ComponentUtil.getClientProperty(table, MY_PANEL_PROPERTY); if (panel != null) { DelegateColorScheme scheme = (DelegateColorScheme)panel.getEditor().getColorsScheme(); scheme.setDelegate(EditorColorsUtil.getGlobalOrDefaultColorScheme()); return panel; } ... | getEditorPanel |
244,659 | RendererComponent (@Nullable Project project, @Nullable Language language, boolean inheritFontFromLaF) { return new AbbreviatingRendererComponent(project, language, inheritFontFromLaF); } | createRendererComponent |
244,660 | void () { } | dispose |
244,661 | EditorEx () { return myEditor; } | getEditor |
244,662 | EditorEx (Project project, @Nullable Language language, boolean inheritFontFromLaF) { Language adjustedLanguage = language != null ? language : PlainTextLanguage.INSTANCE; EditorTextFieldRendererDocument document = new EditorTextFieldRendererDocument(); EditorEx editor = (EditorEx)EditorFactory.getInstance().createView... | createEditor |
244,663 | void (String text, @Nullable TextAttributes textAttributes, boolean selected) { myTextAttributes = textAttributes; mySelected = selected; setText(text); } | setText |
244,664 | void (Color bg) { // allows for striped tables if (myEditor != null) { myEditor.setBackgroundColor(bg); } super.setBackground(bg); } | setBackground |
244,665 | void () { removeAll(); EditorFactory.getInstance().releaseEditor(myEditor); } | dispose |
244,666 | void (String text) { setTextToEditor(text); } | setText |
244,667 | void (String text) { myRawText = text; myPreferredSize = null; } | setText |
244,668 | void (boolean forceSingleLine) { myForceSingleLine = forceSingleLine; myPreferredSize = null; } | setForceSingleLine |
244,669 | void (boolean appendEllipsis) { myAppendEllipsis = appendEllipsis; } | setAppendEllipsis |
244,670 | Dimension () { if (myPreferredSize == null) { int maxLineLength = 0; int linesCount = 0; for (LineTokenizer lt = new LineTokenizer(myRawText); !lt.atEnd(); lt.advance()) { maxLineLength = Math.max(maxLineLength, lt.getLength()); linesCount++; } FontMetrics fontMetrics = ((EditorImpl)getEditor()).getFontMetrics(myTextAt... | getPreferredSize |
244,671 | void (Graphics g) { ReadAction.run(() -> { updateText(g.getClipBounds()); super.paintChildren(g); }); } | paintChildren |
244,672 | void (Rectangle clip) { FontMetrics fontMetrics = ((EditorImpl)getEditor()).getFontMetrics(myTextAttributes != null ? myTextAttributes.getFontType() : Font.PLAIN); Insets insets = getInsets(); int maxLineWidth = getWidth() - (insets != null ? insets.left + insets.right : 0); myDocumentTextBuilder.setLength(0); boolean ... | updateText |
244,673 | void (StringBuilder to, String text, int start, int end, FontMetrics metrics, int maxWidth, boolean replaceLineTerminators, boolean appendEllipsis, char returnSymbol) { int abbreviationLength = abbreviationLength(text, start, end, metrics, maxWidth, replaceLineTerminators, appendEllipsis, returnSymbol); if (!replaceLin... | appendAbbreviated |
244,674 | int (String text, int start, int end, FontMetrics metrics, int maxWidth, boolean replaceSeparators, boolean appendEllipsis, char returnSymbol) { if (metrics.charWidth('m') * (end - start) <= maxWidth) return end - start; int abbrWidth = appendEllipsis ? metrics.charWidth(ABBREVIATION_SUFFIX) : 0; int abbrLength = 0; Ch... | abbreviationLength |
244,675 | AccessibleContext () { if (accessibleContext == null) { accessibleContext = new AccessibleContextDelegate(super.getAccessibleContext()) { @Override protected Container getDelegateParent() { return AbbreviatingRendererComponent.this.getParent(); } @Override public String getAccessibleName() { return myRawText; } }; } re... | getAccessibleContext |
244,676 | Container () { return AbbreviatingRendererComponent.this.getParent(); } | getDelegateParent |
244,677 | String () { return myRawText; } | getAccessibleName |
244,678 | void (@NotNull EditorEx editor) { editor.getSettings().setUseSoftWraps(isEnabled()); } | customize |
244,679 | Rectangle (TableColumn column) { return myComponent.getVisibleRect().intersection(TableUtil.getColumnBounds(myComponent,column)); } | getVisibleRect |
244,680 | TableColumn (Point point) { int i = myComponent.columnAtPoint(point); if (i >= 0) { return myComponent.getColumnModel().getColumn(i); } return null; } | getCellKeyForPoint |
244,681 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
244,682 | void (@NotNull AnActionEvent event) { event.getPresentation().setEnabled(null != getAction(mySwingActionId, getComponent(event))); } | update |
244,683 | void (@NotNull AnActionEvent event) { performAction(mySwingActionId, getComponent(event)); } | actionPerformed |
244,684 | boolean (@Nullable String id, @Nullable JComponent component) { Action action = getAction(id, component); if (action == null) return false; action.actionPerformed(new ActionEvent(component, ActionEvent.ACTION_PERFORMED, id)); return true; } | performAction |
244,685 | void (@NotNull JComponent component, @Nullable Function<? super String, JComponent> mapping) { component.putClientProperty(FUNCTION, mapping); } | configureMapping |
244,686 | void (@NotNull JComponent base, @NotNull JComponent dependant, String @NotNull ... actions) { HashMap<String, JComponent> map = new HashMap<>(); for (String action : actions) map.put(action, dependant); configureMapping(base, map::get); } | configureMapping |
244,687 | void (@NotNull JComponent component) { configureMapping(component, action -> null); } | disableFor |
244,688 | void (@NotNull EditorEx editor) { editor.setHorizontalScrollbarVisible(isEnabled()); } | customize |
244,689 | List<ColorPickerListener> (@Nullable PsiElement element) { List<ColorPickerListener> listeners = null; for (ColorPickerListenerFactory factory : EP_NAME.getExtensions()) { ColorPickerListener listener = factory.createListener(element); if (listener != null) { if (listeners == null) { listeners = new SmartList<>(); } li... | createListenersFor |
244,690 | void (@NotNull SimpleColoredComponent item, Object value, int index, boolean isSelected, boolean hasFocus) { if (value instanceof FontInfo info) { item.setFont(index == -1 ? JBUI.Fonts.label() : info.getFont()); item.append(info.toString()); } else if (value instanceof Model.NoFontItem nfi) { item.append(nfi.toString()... | customize |
244,691 | void (ListDataEvent e) {} | intervalAdded |
244,692 | void (ListDataEvent e) {} | intervalRemoved |
244,693 | void (ListDataEvent e) { if (e.getIndex0() != -42 || e.getIndex1() != -42) return; ComboPopup popup = FontComboBox.this.getPopup(); if (popup != null && popup.isVisible()) { popup.hide(); popup.show(); } } | contentsChanged |
244,694 | Dimension () { if (isPreferredSizeSet()) return super.getPreferredSize(); return mySize.size(); } | getPreferredSize |
244,695 | boolean () { return myModel.myMonospacedOnly; } | isMonospacedOnly |
244,696 | boolean () { return true; } | isMonospacedOnlySupported |
244,697 | void (boolean monospaced) { myModel.setMonospacedOnly(monospaced); } | setMonospacedOnly |
244,698 | String () { Object item = myModel.getSelectedItem(); return item == null ? null : item.toString(); } | getFontName |
244,699 | void (@NlsSafe @Nullable String item) { myModel.setSelectedItem(item); } | setFontName |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.