Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
246,600 | void (@NotNull KeyEvent e) { mySpeedSearch.processKeyEvent(e); } | processKeyEvent |
246,601 | boolean (KeyEvent event, KeyStroke stroke) { if (myInputMap.get(stroke) != null) { final Action action = myActionMap.get(myInputMap.get(stroke)); if (action != null && action.isEnabled()) { action.actionPerformed(new ActionEvent(getContent(), event.getID(), "", event.getWhen(), event.getModifiers())); event.consume(); ... | proceedKeyEvent |
246,602 | void (KeyEvent aEvent) { } | process |
246,603 | Rectangle () { JComponent content = isDisposed() ? null : getContent(); return content == null ? null : new Rectangle(content.getLocationOnScreen(), content.getSize()); } | getBounds |
246,604 | WizardPopup (WizardPopup parent, PopupStep step, Object parentValue) { if (step instanceof ListPopupStep) { return new ListPopupImpl(getProject(), parent, (ListPopupStep)step, parentValue); } else if (step instanceof TreePopupStep) { return new TreePopupImpl(getProject(), parent, (TreePopupStep)step, parentValue); } el... | createPopup |
246,605 | void (ActionEvent e) { myAutoSelectionTimer.stop(); if (getStep().isAutoSelectionEnabled()) { onAutoSelectionTimer(); } } | actionPerformed |
246,606 | void () { if (!myAutoSelectionTimer.isRunning()) { myAutoSelectionTimer.start(); } else { myAutoSelectionTimer.restart(); } } | restartTimer |
246,607 | void () { myAutoSelectionTimer.stop(); } | stopTimer |
246,608 | void () { } | onAutoSelectionTimer |
246,609 | boolean (Object value) { if (!myStep.isSpeedSearchEnabled()) return true; SpeedSearchFilter<Object> filter = myStep.getSpeedSearchFilter(); if (filter == null) return true; if (!filter.canBeHidden(value)) return true; if (!mySpeedSearch.isHoldingFilter()) return true; String text = filter.getIndexedString(value); retur... | shouldBeShowing |
246,610 | SpeedSearch () { return mySpeedSearch; } | getSpeedSearch |
246,611 | void (Object value) { } | onSelectByMnemonic |
246,612 | void () { if (myParent == null || myParentValue == null) return; myParent.onChildSelectedFor(myParentValue); } | notifyParentOnChildSelection |
246,613 | void (final ComponentEvent e) { processParentWindowMoved(); } | componentMoved |
246,614 | void (boolean activeRoot) { myIsActiveRoot = activeRoot; } | setActiveRoot |
246,615 | void (Runnable runnable) { if (getParent() == null) { super.setFinalRunnable(runnable); } else { getParent().setFinalRunnable(runnable); } } | setFinalRunnable |
246,616 | void (boolean ok) { if (getParent() == null) { super.setOk(ok); } else { getParent().setOk(ok); } } | setOk |
246,617 | JComponent () { return myTable; } | getComponent |
246,618 | void (Consumer<? super T> callback) { throw new UnsupportedOperationException("setItemChosenCallback with element callback is not implemented for tables yet"); } | setItemChosenCallback |
246,619 | void (Consumer<? super Set<T>> callback) { throw new UnsupportedOperationException("setItemsChosenCallback with element callback is not implemented for tables yet"); } | setItemsChosenCallback |
246,620 | JScrollPane () { if (myTable instanceof TreeTable) { TreeUtil.expandAll(((TreeTable)myTable).getTree()); } JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myTable); scrollPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); if (myTable.getSelectedRow() == -1) { myTable.getSelectionModel().setSelecti... | createScrollPane |
246,621 | void (MouseEvent e) { if (myIsEngaged) { int index = myTable.rowAtPoint(e.getPoint()); myTable.getSelectionModel().setSelectionInterval(index, index); } else { myIsEngaged = true; } } | mouseMoved |
246,622 | void () { myDelegate.show(); } | show |
246,623 | void () { myPopupWindow.dispose(); } | hide |
246,624 | Window () { return myPopupWindow; } | getWindow |
246,625 | void (JBPopup popup, boolean inStack) { if (inStack) { myStack.push(popup); if (ApplicationManager.getApplication() != null) { IdeEventQueue.getInstance().getPopupManager().push(getInstance()); } } else if (popup.isPersistent()) { myPersistentPopups.add(popup); } myAllPopups.add(popup); } | onPopupShown |
246,626 | void (JBPopup popup) { boolean wasInStack = myStack.remove(popup); myPersistentPopups.remove(popup); if (wasInStack && myStack.isEmpty()) { if (ApplicationManager.getApplication() != null) { IdeEventQueue.getInstance().getPopupManager().remove(this); } } myAllPopups.remove(popup); } | onPopupHidden |
246,627 | void () { for (JBPopup each : myPersistentPopups) { if (each.isNativePopup()) { each.setUiVisible(false); } } } | hidePersistentPopups |
246,628 | void () { for (JBPopup each : myPersistentPopups) { if (each.isNativePopup()) { each.setUiVisible(true); } } } | restorePersistentPopups |
246,629 | void (AWTEvent event) { dispatchMouseEvent(event); } | eventDispatched |
246,630 | boolean (AWTEvent event) { if (event.getID() != MouseEvent.MOUSE_PRESSED) { return false; } if (myStack.isEmpty()) { return false; } AbstractPopup popup = (AbstractPopup)findPopup(); final MouseEvent mouseEvent = (MouseEvent) event; Point point = (Point) mouseEvent.getPoint().clone(); SwingUtilities.convertPointToScree... | dispatchMouseEvent |
246,631 | boolean (final KeyEvent e) { final boolean closeRequest = AbstractPopup.isCloseRequest(e); JBPopup popup = closeRequest ? findPopup() : getFocusedPopup(); if (popup == null) return false; Window window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow(); if (window instanceof Dialog && ((Dialog)w... | dispatchKeyEvent |
246,632 | Stream<JBPopup> () { return myStack.stream(); } | getPopupStream |
246,633 | boolean (AWTEvent event) { if (event instanceof KeyEvent) { return dispatchKeyEvent((KeyEvent) event); } return event instanceof MouseEvent && dispatchMouseEvent(event); } | dispatch |
246,634 | boolean () { if (myStack.isEmpty()) return false; final AbstractPopup popup = (AbstractPopup)myStack.peek(); return popup.requestFocus(); } | requestFocus |
246,635 | boolean () { if (!closeActivePopup()) return false; int size = myStack.size(); while (closeActivePopup()) { int next = myStack.size(); if (size == next) { // no popup was actually closed, break break; } size = next; } return true; // at least one popup was closed } | close |
246,636 | void () { if (myStack.isEmpty()) return; for (JBPopup each : myAllPopups) { if (each instanceof AbstractPopup) { ((AbstractPopup)each).setOk(true); } } } | setRestoreFocusSilently |
246,637 | boolean () { if (myStack.isEmpty()) return false; final AbstractPopup popup = (AbstractPopup)myStack.peek(); if (popup != null && popup.isVisible() && popup.isCancelOnWindowDeactivation() && popup.canClose()) { popup.cancel(); // setCancelCallback(..) can override cancel() return !popup.isVisible(); } return false; } | closeActivePopup |
246,638 | boolean () { return getFocusedPopup() != null; } | isPopupFocused |
246,639 | boolean (@NotNull AbstractPopup popup, @NotNull MouseEvent mouseEvent) { if (popup.isDisposed()) { return false; } int modifiers = mouseEvent.getModifiersEx() & (InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK | InputEvent.ALT_DOWN_MASK | InputEvent.META_DOWN_MASK); if (mouseEvent.getButton() != MouseEvent.BUTTO... | needStopFurtherEventProcessing |
246,640 | void (WindowEvent e) { super.windowLostFocus(e); if (myOnAncestorFocusLost != null) { myOnAncestorFocusLost.run(); } } | windowLostFocus |
246,641 | void (boolean value) { if (myAlwaysOnTop != value) { myAlwaysOnTop = value; disposeAndUpdate(true); } } | setAlwaysOnTop |
246,642 | void (Runnable r) { myOnAncestorFocusLost = r; } | onAncestorFocusLost |
246,643 | void (@NotNull Window window, boolean value) { if (value != window.isAlwaysOnTop()) { try { window.setAlwaysOnTop(value); } catch (Exception ignored) { } } } | setAlwaysOnTop |
246,644 | void (boolean value) { if (myHeavyWeight != value) { myHeavyWeight = value; disposeAndUpdate(true); } } | setHeavyWeight |
246,645 | void (boolean transparent) { if (myTransparent != transparent) { myTransparent = transparent; disposeAndUpdate(true); } } | setTransparent |
246,646 | void (boolean value) { if (myWindowFocusable != value) { myWindowFocusable = value; disposeAndUpdate(true); } } | setWindowFocusable |
246,647 | void (@NotNull Window window, boolean value) { if (value != window.getFocusableWindowState()) { window.setFocusableWindowState(value); } } | setWindowFocusable |
246,648 | void (boolean value) { if (myWindowShadow != value) { myWindowShadow = value; disposeAndUpdate(true); } } | setWindowShadow |
246,649 | void (@NotNull Window window, boolean value) { JRootPane root = getRootPane(window); if (root != null) { root.putClientProperty("Window.shadow", value); } } | setWindowShadow |
246,650 | void (@NotNull Rectangle bounds) { setBounds(bounds.x, bounds.y, bounds.width, bounds.height); } | setBounds |
246,651 | void (int x, int y, int width, int height) { if (myViewBounds != null) { myViewBounds.setBounds(x, y, width, height); } else { setBounds(new Point(x, y), new Dimension(width, height)); } } | setBounds |
246,652 | void (@NotNull Point location) { setLocation(location.x, location.y); } | setLocation |
246,653 | void (int x, int y) { if (myViewBounds != null) { myViewBounds.setLocation(x, y); } else { setBounds(new Point(x, y), null); } } | setLocation |
246,654 | void (@NotNull Dimension size) { setSize(size.width, size.height); } | setSize |
246,655 | void (int width, int height) { if (myViewBounds != null) { myViewBounds.setSize(width, height); } else { setBounds(null, new Dimension(width, height)); } } | setSize |
246,656 | void (boolean visible) { Window owner = ComponentUtil.getWindow(myOwner); if (!visible && myView != null) { disposeAndUpdate(false); if (owner != null) { owner.removeWindowFocusListener(myWindowFocusAdapter); } } else if (visible && myView == null) { if (owner != null) { owner.addWindowFocusListener(myWindowFocusAdapte... | setVisible |
246,657 | boolean () { return myView != null && myView.isVisible(); } | isVisible |
246,658 | void (boolean update) { if (myView != null) { myOwner.removeHierarchyListener(myListener); SwingUtilities.getWindowAncestor(myOwner).removeWindowFocusListener(myWindowFocusAdapter); boolean visible = myView.isVisible(); myView.setVisible(false); Container container = myContent.getParent(); if (container != null) { cont... | disposeAndUpdate |
246,659 | void (Point location, Dimension size) { if (myView != null) { if (size == null) { size = myView.getSize(); } if (location == null) { location = myView.getLocation(); } else { Component parent = myView instanceof Window ? null : myView.getParent(); if (parent != null) { SwingUtilities.convertPointFromScreen(location, pa... | setBounds |
246,660 | JRootPane (Window window) { if (window instanceof RootPaneContainer container) { return container.getRootPane(); } return null; } | getRootPane |
246,661 | AccessToken () { boolean[] insideOnChosen = { true }; //noinspection resource AccessToken token = ProhibitAWTEvents.startFiltered("Popup.handleSelect", e -> { if (!(e instanceof WindowEvent && e.getID() == WindowEvent.WINDOW_ACTIVATED && ((WindowEvent)e).getWindow() instanceof JDialog)) { return null; } Throwable throw... | prohibitFocusEventsInHandleSelect |
246,662 | void () { insideOnChosen[0] = false; token.finish(); } | finish |
246,663 | void (@NotNull JBPopup jbPopup, @Nullable Component toggleButton) { PopupUtil.setPopupToggleComponent(jbPopup, toggleButton); } | setPopupToggleButton |
246,664 | Dimension (final JBPopup popup) { Dimension size = null; if (popup instanceof AbstractPopup) { final String dimensionKey = ((AbstractPopup)popup).getDimensionServiceKey(); if (dimensionKey != null) { size = DimensionService.getInstance().getSize(dimensionKey); } } if (size == null) { size = popup.getContent().getPrefer... | getPopupSize |
246,665 | void (@NotNull KeyEvent e) { if (e.isConsumed()) return; if (e.getID() != KeyEvent.KEY_TYPED) return; if (!Strings.isEmptyOrSpaces(myPopup.getSpeedSearch().getFilter())) return; if (Character.isLetterOrDigit(e.getKeyChar())) { final String s = Character.toString(e.getKeyChar()); final T toSelect = myChar2ValueMap.get(s... | processKeyEvent |
246,666 | void (@NotNull Component aContainer) { getStep().onChosen(myOnYesText, true); } | showInCenterOf |
246,667 | void (@NotNull Component aComponent) { getStep().onChosen(myOnYesText, true); } | showUnderneathOf |
246,668 | JComponent () { myWizardTree = new MyTree(); myWizardTree.getAccessibleContext().setAccessibleName("WizardTree"); myModel = FilteringTreeModel.createModel(getTreeStep().getStructure(), this, Invoker.forEventDispatchThread(this), this); myWizardTree.setModel(myModel); myModel.updateTree(myWizardTree, false, null); myWiz... | createContent |
246,669 | void (KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_SPACE) { toggleExpansion(myWizardTree.getAnchorSelectionPath()); } } | keyPressed |
246,670 | void (ActionEvent e) { handleSelect(true, null); } | actionPerformed |
246,671 | void (ActionEvent e) { toggleExpansion(myWizardTree.getSelectionPath()); } | actionPerformed |
246,672 | void (ActionEvent e) { final TreePath path = myWizardTree.getSelectionPath(); if (path != null && 0 == myWizardTree.getModel().getChildCount(path.getLastPathComponent())) { handleSelect(false, null); return; } oldExpandAction.actionPerformed(e); } | actionPerformed |
246,673 | void (ActionEvent e) { final TreePath path = myWizardTree.getSelectionPath(); if (shouldHidePopup(path)) { goBack(); return; } oldCollapseAction.actionPerformed(e); } | actionPerformed |
246,674 | boolean (TreePath path) { if (getParent() == null) return false; if (path == null) return false; if (!myWizardTree.isCollapsed(path)) return false; if (myWizardTree.isRootVisible()) { return path.getPathCount() == 1; } return path.getPathCount() == 2; } | shouldHidePopup |
246,675 | ActionMap () { return myWizardTree.getActionMap(); } | getActionMap |
246,676 | InputMap () { return myWizardTree.getInputMap(); } | getInputMap |
246,677 | void () { myWizardTree.addMouseMotionListener(myMouseMotionListener); myWizardTree.addMouseListener(myMouseListener); } | addListeners |
246,678 | void () { myWizardTree.removeMouseMotionListener(myMouseMotionListener); myWizardTree.removeMouseListener(myMouseListener); super.dispose(); } | dispose |
246,679 | boolean () { addListeners(); expandAll(); return super.beforeShow(); } | beforeShow |
246,680 | void () { selectFirstSelectableItem(); } | afterShow |
246,681 | void () { for (int i = 0; i < myWizardTree.getRowCount(); i++) { TreePath path = myWizardTree.getPathForRow(i); if (getTreeStep().isSelectable(path.getLastPathComponent(), extractUserObject(path.getLastPathComponent()))) { myWizardTree.setSelectionPath(path); break; } } } | selectFirstSelectableItem |
246,682 | void () { for (int i = 0; i < myWizardTree.getRowCount(); i++) { myWizardTree.expandRow(i); } } | expandAll |
246,683 | void () { int row = myWizardTree.getRowCount() - 1; while (row > 0) { myWizardTree.collapseRow(row); row--; } } | collapseAll |
246,684 | void () { myWizardTree.scrollPathToVisible(myWizardTree.getSelectionPath()); } | scrollToSelection |
246,685 | TreePopupStep<Object> () { return (TreePopupStep<Object>)myStep; } | getTreeStep |
246,686 | boolean (Point location) { if (myLastMouseLocation == null) { myLastMouseLocation = location; return false; } Point prev = myLastMouseLocation; myLastMouseLocation = location; return !prev.equals(location); } | isMouseMoved |
246,687 | void (MouseEvent e) { if (!isMouseMoved(e.getLocationOnScreen())) return; final TreePath path = getPath(e); if (path != null) { myWizardTree.setSelectionPath(path); notifyParentOnChildSelection(); if (getTreeStep().isSelectable(path.getLastPathComponent(), extractUserObject(path.getLastPathComponent()))) { myWizardTree... | mouseMoved |
246,688 | TreePath (MouseEvent e) { return myWizardTree.getClosestPathForLocation(e.getPoint().x, e.getPoint().y); } | getPath |
246,689 | void (MouseEvent e) { final TreePath path = getPath(e); if (path == null) { return; } if (e.getButton() != MouseEvent.BUTTON1) { return; } final Object selected = path.getLastPathComponent(); if (getTreeStep().isSelectable(selected, extractUserObject(selected))) { handleSelect(true, e); } else { if (!TreeUtil.isLocatio... | mousePressed |
246,690 | void (MouseEvent e) { } | mouseReleased |
246,691 | void (TreePath path) { if (path == null) { return; } if (getTreeStep().isSelectable(path.getLastPathComponent(), extractUserObject(path.getLastPathComponent()))) { if (myWizardTree.isExpanded(path)) { myWizardTree.collapsePath(path); } else { myWizardTree.expandPath(path); } } } | toggleExpansion |
246,692 | void (boolean handleFinalChoices, MouseEvent e) { final boolean pathIsAlreadySelected = myShowingChildPath != null && myShowingChildPath.equals(myWizardTree.getSelectionPath()); if (pathIsAlreadySelected) return; myPendingChildPath = null; Object selected = myWizardTree.getLastSelectedPathComponent(); if (selected != n... | handleSelect |
246,693 | void (PopupStep nextStep, Object parentValue) { final Rectangle pathBounds = myWizardTree.getPathBounds(myWizardTree.getSelectionPath()); final Point point = new RelativePoint(myWizardTree, new Point(getContent().getWidth() + 2, (int) pathBounds.getY())).getScreenPoint(); myChild = createPopup(this, nextStep, parentVal... | handleNextStep |
246,694 | void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { final boolean shouldPaintSelected = (getTreeStep().isSelectable(value, extractUserObject(value)) && selected) || (getTreeStep().isSelectable(value, extractUserObject(value)) && hasFocus); final boolea... | customizeCellRenderer |
246,695 | Dimension () { Dimension size = super.getPreferredSize(); if (ExperimentalUI.isNewUI()) { size.height = JBUI.CurrentTheme.Tree.rowHeight(); } return size; } | getPreferredSize |
246,696 | void (KeyEvent aEvent) { myWizardTree.processKeyEvent(aEvent); } | process |
246,697 | Object (Object aNode) { Object object = ((DefaultMutableTreeNode) aNode).getUserObject(); if (object instanceof FilteringTreeStructure.FilteringNode) { return ((FilteringTreeStructure.FilteringNode) object).getDelegate(); } return object; } | extractUserObject |
246,698 | void (KeyEvent e) { e.setSource(this); super.processKeyEvent(e); } | processKeyEvent |
246,699 | Dimension () { final Dimension pref = super.getPreferredSize(); return new Dimension(pref.width + 10, pref.height); } | getPreferredSize |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.