Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
246,500 | void (@NotNull Consumer<? super JScrollBar> consumer) { JScrollBar bar = findHorizontalScrollBar(); if (bar != null) consumer.consume(bar); } | forHorizontalScrollBar |
246,501 | PopupDispatcher () { return ourInstance; } | getInstance |
246,502 | void (@NotNull WizardPopup aRootPopup) { disposeActiveWizard(); ourActiveWizardRoot = aRootPopup; ourShowingStep = aRootPopup; if (ApplicationManager.getApplication() != null) { IdeEventQueue.getInstance().getPopupManager().push(ourInstance); } } | setActiveRoot |
246,503 | void (@NotNull WizardPopup aRootPopup) { if (ourActiveWizardRoot == aRootPopup) { ourActiveWizardRoot = null; ourShowingStep = null; if (ApplicationManager.getApplication() != null) { IdeEventQueue.getInstance().getPopupManager().remove(ourInstance); } } } | clearRootIfNeeded |
246,504 | void (AWTEvent event) { dispatchMouseEvent(event); } | eventDispatched |
246,505 | boolean (@NotNull AWTEvent event) { if (event.getID() != MouseEvent.MOUSE_PRESSED) { return false; } if (ourShowingStep == null) { return false; } WizardPopup eachParent = ourShowingStep; final MouseEvent mouseEvent = (MouseEvent) event; Point point = (Point) mouseEvent.getPoint().clone(); SwingUtilities.convertPointTo... | dispatchMouseEvent |
246,506 | boolean () { if (ourActiveWizardRoot != null) { ourActiveWizardRoot.disposeChildren(); Disposer.dispose(ourActiveWizardRoot); return true; } return false; } | disposeActiveWizard |
246,507 | boolean (final KeyEvent e) { if (ourShowingStep == null) { return false; } return ourShowingStep.dispatch(e); } | dispatchKeyEvent |
246,508 | void (@NotNull WizardPopup aBaseWizardPopup) { ourShowingStep = aBaseWizardPopup; } | setShowing |
246,509 | void (@NotNull WizardPopup aBaseWizardPopup) { if (ourActiveWizardRoot != null) { for (WizardPopup wp = aBaseWizardPopup; wp != null; wp = wp.getParent()) { if (wp == ourActiveWizardRoot) { ourShowingStep = aBaseWizardPopup.getParent(); return; } } WizardPopup activeRoot = getActiveRoot(); if (aBaseWizardPopup != activ... | unsetShowing |
246,510 | WizardPopup () { return ourActiveWizardRoot; } | getActiveRoot |
246,511 | Component () { return ourShowingStep != null && !ourShowingStep.isDisposed() ? ourShowingStep.getContent() : null; } | getComponent |
246,512 | Stream<JBPopup> () { return Stream.of(ourActiveWizardRoot); } | getPopupStream |
246,513 | boolean (AWTEvent event) { if (event instanceof KeyEvent) { return dispatchKeyEvent((KeyEvent)event); } if (event instanceof MouseEvent) { return dispatchMouseEvent(event); } return false; } | dispatch |
246,514 | boolean () { if (ourShowingStep != null) { ourShowingStep.requestFocus(); } return true; } | requestFocus |
246,515 | boolean () { return disposeActiveWizard(); } | close |
246,516 | void () { } | setRestoreFocusSilently |
246,517 | ListPopup (@PopupTitle @Nullable String title, final Runnable onYes, int defaultOptionIndex) { return createConfirmation(title, CommonBundle.getYesButtonText(), CommonBundle.getNoButtonText(), onYes, defaultOptionIndex); } | createConfirmation |
246,518 | ListPopup (@PopupTitle @Nullable String title, final String yesText, String noText, final Runnable onYes, int defaultOptionIndex) { return createConfirmation(title, yesText, noText, onYes, EmptyRunnable.getInstance(), defaultOptionIndex); } | createConfirmation |
246,519 | JBPopup (@PopupTitle String text) { return createListPopup(new BaseListPopupStep<>(null, text)); } | createMessage |
246,520 | Balloon (@Nullable Component c) { if (c == null) return null; Component eachParent = c; while (eachParent != null) { if (eachParent instanceof JComponent) { Object balloon = ((JComponent)eachParent).getClientProperty(Balloon.KEY); if (balloon instanceof Balloon) { return (Balloon)balloon; } } eachParent = eachParent.ge... | getParentBalloonFor |
246,521 | ListPopup (@PopupTitle @Nullable String title, @NlsContexts.Label String yesText, @NlsContexts.Label String noText, Runnable onYes, Runnable onNo, int defaultOptionIndex) { BaseListPopupStep<String> step = new BaseListPopupStep<>(title, yesText, noText) { boolean myRunYes; @Override public PopupStep onChosen(String sel... | createConfirmation |
246,522 | PopupStep (String selectedValue, final boolean finalChoice) { myRunYes = selectedValue.equals(yesText); return FINAL_CHOICE; } | onChosen |
246,523 | void () { (myRunYes ? onYes : onNo).run(); } | canceled |
246,524 | boolean () { return true; } | isMnemonicsNavigationEnabled |
246,525 | void (ActionEvent e) { handleToggleAction(createKeyEvent(e, KeyEvent.VK_SPACE)); } | actionPerformed |
246,526 | ListPopupStep<ActionItem> (@PopupTitle @Nullable String title, @NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, boolean showNumbers, boolean useAlphaAsNumbers, boolean showDisabledActions, boolean honorActionMnemonics, Condition<? super AnAction> preselectActionCondition, @Nullable String actionPlace... | createStep |
246,527 | void () { if (myDisposeCallback != null) { myDisposeCallback.run(); } ActionMenu.showDescriptionInStatusBar(true, myComponent, null); super.dispose(); } | dispose |
246,528 | void (boolean handleFinalChoices, InputEvent e) { ActionItem item = ObjectUtils.tryCast(getList().getSelectedValue(), ActionItem.class); ActionPopupStep step = ObjectUtils.tryCast(getListStep(), ActionPopupStep.class); if (step != null && item != null && step.isSelectable(item) && item.isKeepPopupOpen()) { step.perform... | handleSelect |
246,529 | void (@NotNull KeyEvent keyEvent) { if (!handleRightOrLeftKeyPressed(keyEvent, true)) { super.handleRightKeyPressed(keyEvent); } } | handleRightKeyPressed |
246,530 | void (@NotNull KeyEvent keyEvent) { if (!handleRightOrLeftKeyPressed(keyEvent, false)) { super.handleLeftKeyPressed(keyEvent); } } | handleLeftKeyPressed |
246,531 | boolean (@NotNull KeyEvent keyEvent, boolean isRightKey) { ActionItem item = ObjectUtils.tryCast(getList().getSelectedValue(), ActionItem.class); ActionPopupStep step = ObjectUtils.tryCast(getListStep(), ActionPopupStep.class); if (step != null && item != null && step.isSelectable(item) && item.isKeepPopupOpen() && ite... | handleRightOrLeftKeyPressed |
246,532 | void () { handleToggleAction(null); } | handleToggleAction |
246,533 | void (@Nullable InputEvent inputEvent) { List<Object> selectedValues = getList().getSelectedValuesList(); ActionPopupStep step = ObjectUtils.tryCast(getListStep(), ActionPopupStep.class); if (step == null) return; boolean updateStep = false; for (Object value : selectedValues) { ActionItem item = ObjectUtils.tryCast(va... | handleToggleAction |
246,534 | ListPopup (@PopupTitle @Nullable String title, @NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, ActionSelectionAid aid, boolean showDisabledActions, Runnable disposeCallback, int maxRowCount, Condition<? super AnAction> preselectActionCondition, @Nullable String actionPlace) { return new ActionGroupP... | createActionGroupPopup |
246,535 | ListPopup (@PopupTitle @Nullable String title, @NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, boolean showNumbers, boolean showDisabledActions, boolean honorActionMnemonics, Runnable disposeCallback, int maxRowCount, Condition<? super AnAction> preselectActionCondition) { return new ActionGroupPopu... | createActionGroupPopup |
246,536 | ListPopupStep<ActionItem> (@NotNull ActionGroup actionGroup, @NotNull DataContext dataContext, @Nullable String actionPlace, boolean showNumbers, boolean showDisabledActions, @PopupTitle @Nullable String title, Component component, boolean honorActionMnemonics, int defaultOptionIndex, boolean autoSelectionEnabled) { Da... | createActionsStep |
246,537 | boolean (Iterable<? extends ActionItem> items) { for (ActionItem item : items) { if (item.getAction().getTemplatePresentation().getMnemonic() != 0) return true; } return false; } | anyMnemonicsIn |
246,538 | ListPopup (@NotNull ListPopupStep step) { return new ListPopupImpl(step); } | createListPopup |
246,539 | ListPopup (@NotNull ListPopupStep step, int maxRowCount) { ListPopupImpl popup = new ListPopupImpl(step); popup.setMaxRowCount(maxRowCount); return popup; } | createListPopup |
246,540 | ListPopup (@NotNull Project project, @NotNull ListPopupStep step, @NotNull Function<? super ListCellRenderer, ? extends ListCellRenderer> cellRendererProducer) { return new ListPopupImpl(project, step) { @Override protected ListCellRenderer<?> getListElementRenderer() { return cellRendererProducer.apply(super.getListEl... | createListPopup |
246,541 | TreePopup (JBPopup parent, @NotNull TreePopupStep aStep, Object parentValue) { return new TreePopupImpl(aStep.getProject(), parent, aStep, parentValue); } | createTree |
246,542 | TreePopup (@NotNull TreePopupStep aStep) { return new TreePopupImpl(aStep.getProject(), null, aStep, null); } | createTree |
246,543 | ComponentPopupBuilder (@NotNull JComponent content, JComponent preferableFocusComponent) { return new ComponentPopupBuilderImpl(content, preferableFocusComponent); } | createComponentPopupBuilder |
246,544 | RelativePoint (@NotNull DataContext dataContext) { Component component = PlatformCoreDataKeys.CONTEXT_COMPONENT.getData(dataContext); JComponent focusOwner = component instanceof JComponent ? (JComponent)component : null; if (focusOwner == null || !UIUtil.isShowing(focusOwner)) { Project project = CommonDataKeys.PROJEC... | guessBestPopupLocation |
246,545 | RelativePoint (@NotNull JComponent component) { Point popupMenuPoint = null; final Rectangle visibleRect = component.getVisibleRect(); if (component instanceof JList<?> list) { // JList int firstVisibleIndex = list.getFirstVisibleIndex(); int lastVisibleIndex = list.getLastVisibleIndex(); int[] selectedIndices = list.g... | guessBestPopupLocation |
246,546 | boolean (@NotNull Editor editor) { return getVisibleBestPopupLocation(editor) != null; } | isBestPopupLocationVisible |
246,547 | RelativePoint (@NotNull Editor editor) { Point p = getVisibleBestPopupLocation(editor); if (p == null) { final Rectangle visibleArea = editor.getScrollingModel().getVisibleArea(); p = new Point(visibleArea.x + visibleArea.width / 3, visibleArea.y + visibleArea.height / 2); } return new RelativePoint(editor.getContentCo... | guessBestPopupLocation |
246,548 | Point (JComponent container, JComponent content) { return AbstractPopup.getCenterOf(container, content); } | getCenterOf |
246,549 | List<JBPopup> (@NotNull Component component) { return AbstractPopup.getChildPopups(component); } | getChildPopups |
246,550 | boolean () { return IdeEventQueue.getInstance().isPopupActive(); } | isPopupActive |
246,551 | BalloonBuilder (@NotNull JComponent content) { return new BalloonPopupBuilderImpl(myStorage, content); } | createBalloonBuilder |
246,552 | BalloonBuilder (@NotNull JComponent content, @PopupTitle @Nullable String title) { final BalloonPopupBuilderImpl builder = new BalloonPopupBuilderImpl(myStorage, content); return fillDialogBalloonBuilder(builder, title); } | createDialogBalloonBuilder |
246,553 | BalloonBuilder (BalloonBuilder builder, @PopupTitle @Nullable String title) { final Color bg = UIManager.getColor("Panel.background"); final Color borderOriginal = JBColor.DARK_GRAY; final Color border = ColorUtil.toAlpha(borderOriginal, 75); return builder .setDialogMode(true) .setTitle(title) .setAnimationCycle(200) ... | fillDialogBalloonBuilder |
246,554 | BalloonBuilder (@NotNull String htmlContent, @Nullable Icon icon, Color textColor, Color fillColor, @Nullable HyperlinkListener listener) { return createHtmlTextBalloonBuilder(new Html(htmlContent), icon, textColor, fillColor, listener); } | createHtmlTextBalloonBuilder |
246,555 | BalloonBuilder (@NotNull Html html, @Nullable Icon icon, Color textColor, Color fillColor, @Nullable HyperlinkListener listener) { if (textColor == null) { textColor = MessageType.INFO.getTitleForeground(); } if (fillColor == null) { fillColor = MessageType.INFO.getPopupBackground(); } JEditorPane text = IdeTooltipMana... | createHtmlTextBalloonBuilder |
246,556 | BalloonBuilder (@NotNull String htmlContent, @NotNull MessageType messageType, @Nullable HyperlinkListener listener) { return createHtmlTextBalloonBuilder(htmlContent, messageType.getDefaultIcon(), messageType.getTitleForeground(), messageType.getPopupBackground(), listener).setBorderColor(messageType.getBorderColor())... | createHtmlTextBalloonBuilder |
246,557 | void (@NotNull Presentation presentation, @NotNull String actionPlace) { Pair<Icon, Icon> icons = ActionStepBuilder.calcRawIcons(myAction, presentation, false); Icon icon = icons.first; Icon selectedIcon = icons.second; if (maxIconWidth != -1 && maxIconHeight != -1) { icon = scaleIconToSize(icon, maxIconWidth, maxIconH... | updateFromPresentation |
246,558 | boolean () { return myIsKeepPopupOpen; } | isKeepPopupOpen |
246,559 | boolean () { return myIsAlwaysVisible; } | isAlwaysVisible |
246,560 | AnAction () { return myAction; } | getAction |
246,561 | Icon (boolean selected) { return selected && mySelectedIcon != null ? mySelectedIcon : myIcon; } | getIcon |
246,562 | List<InlineActionItem> () { return myInlineActions; } | getInlineActions |
246,563 | boolean () { return myMnemonicsEnabled; } | digitMnemonicsEnabled |
246,564 | AnAction () { return myAction; } | getAction |
246,565 | boolean () { return myPrependWithSeparator; } | isPrependWithSeparator |
246,566 | void (@NlsContexts.Separator String separatorText) { myPrependWithSeparator = separatorText != null; mySeparatorText = separatorText; } | setSeparatorText |
246,567 | boolean () { return myIsEnabled; } | isEnabled |
246,568 | boolean () { return myIsPerformGroup; } | isPerformGroup |
246,569 | ShortcutSet () { return myAction.getShortcutSet(); } | getShortcut |
246,570 | String () { return myText; } | toString |
246,571 | void (ActionEvent e) { if (mySpeedSearch.isHoldingFilter()) { mySpeedSearch.reset(); } else { disposeAll(); } } | actionPerformed |
246,572 | void (ActionEvent e) { goBack(); } | actionPerformed |
246,573 | void (Object value) { onSelectByMnemonic(value); } | select |
246,574 | JComponent (JComponent content) { JScrollPane scrollPane = createScrollPane(content); scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); scrollPane.getHorizontalScrollBar().setBorder(null); scr... | createPopupComponent |
246,575 | JScrollPane (JComponent content) { return ScrollPaneFactory.createScrollPane(content); } | createScrollPane |
246,576 | void () { WizardPopup root = PopupDispatcher.getActiveRoot(); disposeAllParents(null); root.getStep().canceled(); } | disposeAll |
246,577 | void () { if (mySpeedSearch.isHoldingFilter()) { mySpeedSearch.reset(); return; } if (myParent != null) { myParent.disposeChildren(); } else { disposeAll(); } } | goBack |
246,578 | void () { myAutoSelectionTimer.stop(); super.dispose(); PopupDispatcher.unsetShowing(this); PopupDispatcher.clearRootIfNeeded(this); if (myOwnerWindow != null && myOwnerListener != null) { myOwnerWindow.removeComponentListener(myOwnerListener); } } | dispose |
246,579 | void () { if (myChild != null) { myChild.disposeChildren(); Disposer.dispose(myChild); myChild = null; } } | disposeChildren |
246,580 | void (final @NotNull Component owner, final int aScreenX, final int aScreenY, final boolean considerForcedXY) { if (UiInterceptors.tryIntercept(this)) return; LOG.assertTrue (!isDisposed()); Dimension size = getContent().getPreferredSize(); Dimension minimumSize = getMinimumSize(); size.width = Math.max(size.width, min... | show |
246,581 | void () { super.afterShow(); registerAutoMove(); } | afterShow |
246,582 | void () { if (myOwner != null) { myOwnerWindow = SwingUtilities.getWindowAncestor(myOwner); if (myOwnerWindow != null) { myLastOwnerPoint = myOwnerWindow.getLocationOnScreen(); myOwnerListener = new MyComponentAdapter(); myOwnerWindow.addComponentListener(myOwnerListener); } } } | registerAutoMove |
246,583 | void () { if (isDisposed()) return; final Point newOwnerPoint = myOwnerWindow.getLocationOnScreen(); int deltaX = myLastOwnerPoint.x - newOwnerPoint.x; int deltaY = myLastOwnerPoint.y - newOwnerPoint.y; myLastOwnerPoint = newOwnerPoint; final Window wnd = SwingUtilities.getWindowAncestor(getContent()); if (!wnd.isShowi... | processParentWindowMoved |
246,584 | void (InputEvent e) { super.cancel(e); disposeChildren(); Disposer.dispose(this); getStep().canceled(); } | cancel |
246,585 | boolean () { return super.isCancelKeyEnabled() && !mySpeedSearch.isHoldingFilter(); } | isCancelKeyEnabled |
246,586 | void (InputEvent e) { myDisposeEvent = e; Disposer.dispose(this); if (myParent != null) { myParent.disposeAllParents(null); } } | disposeAllParents |
246,587 | void (@NonNls String aActionName, int aKeyCode, @JdkConstants.InputEventMask int aModifier, Action aAction) { myInputMap.put(KeyStroke.getKeyStroke(aKeyCode, aModifier), aActionName); myActionMap.put(aActionName, aAction); } | registerAction |
246,588 | String (final KeyStroke keyStroke) { return (String) myInputMap.get(keyStroke); } | getActionForKeyStroke |
246,589 | void (@NonNls String aActionName, KeyStroke keyStroke, Action aAction) { myInputMap.put(keyStroke, aActionName); myActionMap.put(aActionName, aAction); } | registerAction |
246,590 | void (Object parentValue) { myParentValue = parentValue; } | setParentValue |
246,591 | MyContentPanel (final boolean resizable, final @NotNull PopupBorder border, final boolean isToDrawMacCorner) { return new MyContainer(border); } | createContentPanel |
246,592 | boolean () { return false; } | isResizable |
246,593 | Dimension () { if (isPreferredSizeSet()) { return super.getPreferredSize(); } final Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); Point p = null; if (focusOwner != null && focusOwner.isShowing()) { p = focusOwner.getLocationOnScreen(); } return computeNotBiggerDimension(s... | getPreferredSize |
246,594 | Dimension (Dimension ofContent, final Point locationOnScreen) { int resultHeight; if (locationOnScreen == null) { resultHeight = ofContent.height > MAX_SIZE.height + 50 ? MAX_SIZE.height : ofContent.height; } else { Rectangle r = ScreenUtil.getScreenRectangle(locationOnScreen); resultHeight = Math.min(ofContent.height,... | computeNotBiggerDimension |
246,595 | WizardPopup () { return myParent; } | getParent |
246,596 | void (boolean alignByParentBounds) { this.alignByParentBounds = alignByParentBounds; } | setAlignByParentBounds |
246,597 | boolean () { return alignByParentBounds; } | isAlignByParentBounds |
246,598 | PopupStep () { return myStep; } | getStep |
246,599 | boolean (KeyEvent event) { if (anyModalWindowsKeepPopupOpen()) { return false; // Popups should not process key events if there's a modal dialog on top of them. } if (event.getID() == KeyEvent.KEY_PRESSED) { myKeyPressedReceived = true; final KeyStroke stroke = KeyStroke.getKeyStroke(event.getKeyCode(), event.getModifi... | dispatch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.