Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
280,500 | int (@DialogMessage String message, @NotNull @DialogTitle String title, @Nls @NotNull @NlsContexts.Button String yesText, @Nls @NotNull @NlsContexts.Button String noText, @Nullable Icon icon, @Nullable DialogWrapper.DoNotAskOption doNotAskOption) { return MessageDialogBuilder.yesNo(title, message) .yesText(yesText) .no... | showYesNoDialog |
280,501 | int (@DialogMessage String message, @DialogTitle String title, @NlsContexts.Button String yesText, @NlsContexts.Button String noText, @Nullable Icon icon) { return MessageDialogBuilder.yesNo(title, message) .yesText(yesText) .noText(noText) .icon(icon) .guessWindowAndAsk() ? YES : NO; } | showYesNoDialog |
280,502 | int (@DialogMessage String message, @NotNull @DialogTitle String title, @Nullable Icon icon) { return MessageDialogBuilder.yesNo(title, message).icon(icon).guessWindowAndAsk() ? YES : NO; } | showYesNoDialog |
280,503 | int (@Nullable Project project, @NotNull @DialogMessage String message, @NotNull @DialogTitle String title, @NotNull @NlsContexts.Button String okText, @NotNull @NlsContexts.Button String cancelText, @Nullable Icon icon, @Nullable DialogWrapper.DoNotAskOption doNotAskOption) { return MessageDialogBuilder.okCancel(title... | showOkCancelDialog |
280,504 | int (Project project, @DialogMessage String message, @NotNull @DialogTitle String title, @NotNull @NlsContexts.Button String okText, @NotNull @NlsContexts.Button String cancelText, @Nullable Icon icon) { return MessageDialogBuilder.okCancel(title, message) .yesText(okText) .noText(cancelText) .icon(icon) .ask(project) ... | showOkCancelDialog |
280,505 | int (Project project, @DialogMessage String message, @DialogTitle String title, Icon icon) { return MessageDialogBuilder.okCancel(title, message).icon(icon).ask(project) ? OK : CANCEL; } | showOkCancelDialog |
280,506 | int (@NotNull Component parent, @DialogMessage String message, @NotNull @DialogTitle String title, @NotNull @NlsContexts.Button String okText, @NotNull @NlsContexts.Button String cancelText, Icon icon) { return MessageDialogBuilder.okCancel(title, message) .yesText(okText) .noText(cancelText) .icon(icon) .ask(parent) ?... | showOkCancelDialog |
280,507 | int (@NotNull Component parent, @DialogMessage String message, @DialogTitle String title, @Nullable Icon icon) { return MessageDialogBuilder.okCancel(title, message).icon(icon).ask(parent) ? OK : CANCEL; } | showOkCancelDialog |
280,508 | int (@DialogMessage String message, @DialogTitle String title, Icon icon) { return MessageDialogBuilder.okCancel(title, message).icon(icon).guessWindowAndAsk() ? OK : CANCEL; } | showOkCancelDialog |
280,509 | int (@DialogMessage String message, @DialogTitle String title, @NlsContexts.Button String okText, @NlsContexts.Button String cancelText, Icon icon) { return MessageDialogBuilder.okCancel(title, message).yesText(okText).noText(cancelText).icon(icon).guessWindowAndAsk() ? OK : CANCEL; } | showOkCancelDialog |
280,510 | int (@DialogMessage String message, @NotNull @DialogTitle String title, @NotNull @NlsContexts.Button String okText, @NotNull @NlsContexts.Button String cancelText, Icon icon, @Nullable DialogWrapper.DoNotAskOption doNotAskOption) { return MessageDialogBuilder.okCancel(title, message) .yesText(okText) .noText(cancelText... | showOkCancelDialog |
280,511 | int (@DialogMessage String message, @DialogTitle String title, @NlsContexts.Checkbox String checkboxText, final boolean checked, final int defaultOptionIndex, final int focusedOptionIndex, Icon icon) { return showCheckboxMessageDialog(message, title, new String[]{getOkButton(), getCancelButton()}, checkboxText, checked... | showCheckboxOkCancelDialog |
280,512 | int (@DialogMessage String message, @DialogTitle String title, String @NotNull @NlsContexts.Button [] options, @NlsContexts.Checkbox String checkboxText, final boolean checked, final int defaultOptionIndex, final int focusedOptionIndex, Icon icon, final @Nullable BiFunction<? super Integer, ? super JCheckBox, Integer> ... | showCheckboxMessageDialog |
280,513 | int (@DialogMessage String message, @DialogTitle String title, String @NotNull @NlsContexts.Button [] options, @NlsContexts.Checkbox String checkboxText, final boolean checked, final int defaultOptionIndex, final int focusedOptionIndex, Icon icon, final @Nullable PairFunction<? super Integer, ? super JCheckBox, Integer... | showCheckboxMessageDialog |
280,514 | int (@DialogMessage String message, @DialogTitle String title, @NlsContexts.Checkbox String checkboxText, Icon icon) { return showCheckboxMessageDialog(message, title, new String[]{getOkButton()}, checkboxText, true, -1, -1, icon, null); } | showTwoStepConfirmationDialog |
280,515 | void (@Nullable Project project, @DialogMessage String message, @NotNull @DialogTitle String title) { showDialog(project, message, title, new String[]{getOkButton()}, 0, getErrorIcon()); } | showErrorDialog |
280,516 | void (@Nullable Component component, @DialogMessage String message, @NotNull @DialogTitle String title) { MessagesService.getInstance().showMessageDialog(null, component, message, title, new String[]{getOkButton()}, 0, 0, getErrorIcon(), null, false, null); } | showErrorDialog |
280,517 | void (@NotNull Component component, @DialogMessage String message) { showDialog(component, message, CommonBundle.getErrorTitle(), new String[]{getOkButton()}, 0, getErrorIcon()); } | showErrorDialog |
280,518 | void (@DialogMessage String message, @NotNull @DialogTitle String title) { showErrorDialog((Component)null, message, title); } | showErrorDialog |
280,519 | void (@Nullable Project project, @DialogMessage String message, @NotNull @DialogTitle String title) { showDialog(project, message, title, new String[]{getOkButton()}, 0, getWarningIcon()); } | showWarningDialog |
280,520 | void (@NotNull Component component, @DialogMessage String message, @NotNull @DialogTitle String title) { showDialog(component, message, title, new String[]{getOkButton()}, 0, getWarningIcon()); } | showWarningDialog |
280,521 | void (@DialogMessage String message, @NotNull @DialogTitle String title) { showDialog(message, title, new String[]{getOkButton()}, 0, getWarningIcon()); } | showWarningDialog |
280,522 | int (@Nullable Project project, @DialogMessage String message, @NotNull @DialogTitle String title, @NotNull @NlsContexts.Button String yes, @NotNull @NlsContexts.Button String no, @NotNull @NlsContexts.Button String cancel, @Nullable Icon icon) { return MessageDialogBuilder.yesNoCancel(title, message) .yesText(yes) .no... | showYesNoCancelDialog |
280,523 | int (@Nullable Project project, @DialogMessage String message, @DialogTitle String title, @Nullable Icon icon) { return MessageDialogBuilder.yesNoCancel(title, message).icon(icon).show(project); } | showYesNoCancelDialog |
280,524 | int (@NotNull Component parent, @DialogMessage String message, @NotNull @DialogTitle String title, @NotNull @NlsContexts.Button String yes, @NotNull @NlsContexts.Button String no, @NotNull @NlsContexts.Button String cancel, @Nullable Icon icon) { return MessageDialogBuilder.yesNoCancel(title, message) .yesText(yes) .no... | showYesNoCancelDialog |
280,525 | int (@NotNull Component parent, @DialogMessage String message, @DialogTitle String title, Icon icon) { return MessageDialogBuilder.yesNoCancel(title, message).icon(icon).show(parent); } | showYesNoCancelDialog |
280,526 | int (@DialogMessage String message, @NotNull @DialogTitle String title, @NotNull @NlsContexts.Button String yes, @NotNull @NlsContexts.Button String no, @NotNull @NlsContexts.Button String cancel, Icon icon, @Nullable DialogWrapper.DoNotAskOption doNotAskOption) { return MessageDialogBuilder.yesNoCancel(title, message)... | showYesNoCancelDialog |
280,527 | int (@DialogMessage String message, @DialogTitle String title, @NlsContexts.Button String yes, @NlsContexts.Button String no, @NlsContexts.Button String cancel, Icon icon) { return MessageDialogBuilder.yesNoCancel(title, message) .yesText(yes) .noText(no) .cancelText(cancel) .icon(icon) .guessWindowAndAsk(); } | showYesNoCancelDialog |
280,528 | int (@DialogMessage String message, @DialogTitle String title, @Nullable Icon icon) { return MessageDialogBuilder.yesNoCancel(title, message).icon(icon).guessWindowAndAsk(); } | showYesNoCancelDialog |
280,529 | int (@DialogMessage String message, @DialogTitle String title, String[] values, String initialValue, @Nullable Icon icon) { return MessagesService.getInstance().showChooseDialog(null, null, message, title, values, initialValue, icon); } | showChooseDialog |
280,530 | int (Project project, @DialogMessage String message, @DialogTitle String title, Icon icon, String[] values, String initialValue) { return MessagesService.getInstance().showChooseDialog(project, null, message, title, values, initialValue, icon); } | showChooseDialog |
280,531 | void (Component component, @DialogMessage String message, @NotNull @DialogTitle String title) { showMessageDialog(component, message, title, getInformationIcon()); } | showInfoMessage |
280,532 | void (@Nullable Project project, @DialogMessage String message, @NotNull @DialogTitle String title) { showMessageDialog(project, message, title, getInformationIcon()); } | showInfoMessage |
280,533 | void (@DialogMessage String message, @NotNull @DialogTitle String title) { showMessageDialog(message, title, getInformationIcon()); } | showInfoMessage |
280,534 | void (final JTextField textField, final @DialogTitle String title, final @NonNls String dimensionServiceKey, final Function<? super String, ? extends List<String>> parser, final Function<? super List<String>, String> lineJoiner) { MessagesService.getInstance().showTextAreaDialog(textField, title, dimensionServiceKey, p... | showTextAreaDialog |
280,535 | void (final JTextField textField, final @DialogTitle String title, final @NonNls String dimensionServiceKey) { showTextAreaDialog(textField, title, dimensionServiceKey, ParametersListUtil.DEFAULT_LINE_PARSER, ParametersListUtil.DEFAULT_LINE_JOINER); } | showTextAreaDialog |
280,536 | void () { getOKAction().setEnabled(myValidator == null || myValidator.checkInput(myField.getText().trim())); } | enableOkAction |
280,537 | void (@NotNull DocumentEvent event) { final String text = myField.getText().trim(); actions[exitCode].setEnabled(myValidator == null || myValidator.checkInput(text)); if (myValidator instanceof InputValidatorEx) { setErrorText(((InputValidatorEx)myValidator).getErrorText(text), myField); } } | textChanged |
280,538 | void (ActionEvent e) { close(exitCode); } | actionPerformed |
280,539 | void () { String inputString = myField.getText().trim(); if (myValidator == null || myValidator.checkInput(inputString) && myValidator.canClose(inputString)) { close(0); } } | doOKAction |
280,540 | JComponent () { return null; } | createCenterPanel |
280,541 | JComponent () { JPanel panel = createIconPanel(); JPanel messagePanel = createMessagePanel(); panel.add(messagePanel, BorderLayout.CENTER); if (myComment != null) { return UI.PanelFactory.panel(panel).withComment(myComment).createPanel(); } else { return panel; } } | createNorthPanel |
280,542 | JPanel () { JPanel messagePanel = new JPanel(new BorderLayout()); if (myMessage != null) { JComponent textComponent = createTextComponent(); messagePanel.add(textComponent, BorderLayout.NORTH); } myField = createTextFieldComponent(); messagePanel.add(createScrollableTextComponent(), BorderLayout.SOUTH); return messageP... | createMessagePanel |
280,543 | JComponent () { return myField; } | createScrollableTextComponent |
280,544 | JComponent () { JComponent textComponent; if (BasicHTML.isHTMLString(myMessage)) { textComponent = createMessageComponent(myMessage); } else { JLabel textLabel = new JLabel(myMessage); textLabel.setUI(new MultiLineLabelUI()); textComponent = textLabel; } textComponent.setBorder(BorderFactory.createEmptyBorder(0, 0, 5, ... | createTextComponent |
280,545 | JTextComponent () { return myField; } | getTextField |
280,546 | JTextComponent () { JTextField field = new JTextField(INPUT_DIALOG_COLUMNS); field.setMargin(JBInsets.create(0, 5)); return field; } | createTextFieldComponent |
280,547 | JComponent () { return myField; } | getPreferredFocusedComponent |
280,548 | E () { return (E)getSelectedItem(); } | getItem |
280,549 | void (E item) { setSelectedItem(item); } | setItem |
280,550 | void (ListCellRenderer<? super E> renderer) { if (renderer instanceof SimpleColoredComponent scc) { scc.getIpad().top = scc.getIpad().bottom = 0; } super.setRenderer(new AdjustingListCellRenderer(renderer)); } | setRenderer |
280,551 | void (int minLength) { myMinLength = minLength; } | setMinLength |
280,552 | int () { return myMinLength; } | getMinLength |
280,553 | int () { // The original preferred size of `JComboBox` is calculated as a max of combobox items preferred sizes // (see `javax.swing.plaf.basic.BasicComboBoxUI#getDisplaySize`). // Please note that `getPreferredSize().width` cannot be used, because `getPreferredSize` might be overridden // to return a value different f... | getMinimumPopupWidth |
280,554 | Component (JList<? extends E> list, E value, int index, boolean isSelected, boolean cellHasFocus) { if (index == -1 && value instanceof String stringValue && !isValid()) { int minLength = getMinLength(); if (getSize().width == 0) { if (stringValue.length() > minLength) { @SuppressWarnings("unchecked") E e = (E)stringVa... | getListCellRendererComponent |
280,555 | ComponentValidator (@NotNull Consumer<? super ComponentValidator> validator) { this.validator = () -> { validator.accept(this); return validationInfo; }; return this; } | withValidator |
280,556 | ComponentValidator (@NotNull Supplier<? extends ValidationInfo> validator) { this.validator = validator; return this; } | withValidator |
280,557 | ComponentValidator (@NotNull Supplier<? extends ValidationInfo> focusValidator) { this.focusValidator = focusValidator; return this; } | withFocusValidator |
280,558 | ComponentValidator (@NotNull HyperlinkListener hyperlinkListener) { this.hyperlinkListener = hyperlinkListener; return this; } | withHyperlinkListener |
280,559 | ComponentValidator (@NotNull Function<? super JComponent, ? extends JComponent> outlineProvider) { this.outlineProvider = outlineProvider; return this; } | withOutlineProvider |
280,560 | ComponentValidator () { disableValidation = true; return this; } | andStartOnFocusLost |
280,561 | ComponentValidator (@NotNull JComponent component) { Component fc = getFocusable(component).orElse(outlineProvider.apply(component)); component.putClientProperty(PROPERTY_NAME, this); FocusListener focusListener = new ValidationFocusListener(); MouseListener mouseListener = new ValidationMouseListener(); ComponentListe... | installOn |
280,562 | ComponentValidator (@NotNull JTextComponent textComponent) { DocumentAdapter listener = new DocumentAdapter() { @Override protected void textChanged(@NotNull DocumentEvent e) { getInstance(textComponent).ifPresent(ComponentValidator::revalidate); // Don't use 'this' to avoid cyclic references. } }; textComponent.getDoc... | andRegisterOnDocumentListener |
280,563 | void (@NotNull DocumentEvent e) { getInstance(textComponent).ifPresent(ComponentValidator::revalidate); // Don't use 'this' to avoid cyclic references. } | textChanged |
280,564 | void (com.intellij.openapi.editor.event.@NotNull DocumentEvent event) { getInstance(textComponent).ifPresent(ComponentValidator::revalidate); // Don't use 'this' to avoid cyclic references. } | documentChanged |
280,565 | void () { if (validator != null) { updateInfo(validator.get()); } } | revalidate |
280,566 | Optional<ComponentValidator> (@NotNull JComponent component) { return Optional.ofNullable((ComponentValidator)component.getClientProperty(PROPERTY_NAME)); } | getInstance |
280,567 | void () { if (validationInfo != null && validationInfo.component != null) { outlineProvider.apply(validationInfo.component).putClientProperty("JComponent.outline", null); validationInfo.component.revalidate(); validationInfo.component.repaint(); } hidePopup(true); popupBuilder = null; tipComponent = null; popupLocation... | reset |
280,568 | boolean (@Nullable ValidationInfo info) { if (info == null && validationInfo != null) return true; else if (info != null && validationInfo != null) { if (info.warning != validationInfo.warning) return true; if (tipComponent != null && !Objects.equals(info.message, validationInfo.message)) { String message = HtmlChunk.d... | needResetForInfo |
280,569 | void (@Nullable ValidationInfo info) { if (disableValidation) return; boolean hasNewInfo = info != null && !info.equals(validationInfo); if (needResetForInfo(info)) { reset(); } if (hasNewInfo || (info != null && popup != null && !popup.isVisible())) { validationInfo = info; if (popup != null && popup.isVisible() && ti... | updateInfo |
280,570 | ComponentPopupBuilder (boolean isWarning, @Nullable Consumer<? super JEditorPane> configurator) { JEditorPane tipComponent = new JEditorPane(); tipComponent.setContentType("text/html"); tipComponent.setEditable(false); tipComponent.setEditorKit(HTMLEditorKitBuilder.simple()); EditorKit kit = tipComponent.getEditorKit()... | createPopupBuilder |
280,571 | ComponentPopupBuilder (@NotNull ValidationInfo info, @Nullable Consumer<? super JEditorPane> configurator) { return createPopupBuilder(info.warning, tipComponent -> { convertMessage(info.message, tipComponent); if (configurator != null) { configurator.accept(tipComponent); } }); } | createPopupBuilder |
280,572 | boolean (@NotNull ValidationInfo info, @NotNull MouseEvent e) { if (info.component != null && info.component.isShowing()) { Rectangle screenBounds = new Rectangle(info.component.getLocationOnScreen(), info.component.getSize()); return screenBounds.contains(e.getLocationOnScreen()); } else { return false; } } | withinComponent |
280,573 | void () { if ((popup == null || !popup.isVisible()) && popupBuilder != null && validationInfo != null && validationInfo.component != null && validationInfo.component.isEnabled()) { popup = popupBuilder.createPopup(); Insets i = validationInfo.component.getInsets(); Point point = new Point(JBUIScale.scale(40), i.top - J... | showPopup |
280,574 | void (boolean now) { if (popup != null && popup.isVisible()) { if (now || hyperlinkListener == null) { popup.cancel(); popup = null; } else { popupAlarm.addRequest(() -> { if (!isOverPopup || hyperlinkListener == null) { hidePopup(true); } }, Registry.intValue("ide.tooltip.initialDelay.highlighter")); } } } | hidePopup |
280,575 | Border () { Insets i = UIManager.getInsets("ValidationTooltip.borderInsets"); return i != null ? new JBEmptyBorder(i) : JBUI.Borders.empty(4, 8); } | getBorder |
280,576 | Optional<Component> (Component source) { if (source instanceof JComboBox && !((JComboBox<?>)source).isEditable() || source instanceof JCheckBox || source instanceof JRadioButton || source instanceof TagButton) { return Optional.of(source); } return UIUtil.uiTraverser(source) .filter(c -> ( (c instanceof JTextComponent ... | getFocusable |
280,577 | void (FocusEvent e) { showPopup(); } | focusGained |
280,578 | void (FocusEvent e) { hidePopup(false); if (focusValidator != null) { updateInfo(focusValidator.get()); } if (disableValidation) { enableValidation(); revalidate(); } } | focusLost |
280,579 | void () { disableValidation = false; } | enableValidation |
280,580 | void (MouseEvent e) { showPopup(); } | mouseEntered |
280,581 | void (MouseEvent e) { if (validationInfo != null) { getFocusable(validationInfo.component).ifPresent(fc -> { if (!fc.hasFocus()) { hidePopup(false); } }); } } | mouseExited |
280,582 | void (MouseEvent e) { isOverPopup = true; } | mouseEntered |
280,583 | void (MouseEvent e) { isOverPopup = false; if (popup != null) { getFocusable(validationInfo.component).ifPresent(fc -> { if (!fc.hasFocus()) { popup.cancel(); popup = null; } }); } } | mouseExited |
280,584 | Border () { return new JBEmptyBorder(UIUtil.getRegularPanelInsets()); } | createDefaultBorder |
280,585 | void () { DialogWrapper.this.dispose(); } | dispose |
280,586 | void () { Window window = myPeer.getWindow(); if (window == null) { return; } myResizeListener = new ComponentAdapter() { @Override public void componentResized(ComponentEvent e) { if (!myResizeInProgress) { myActualSize = myPeer.getSize(); if (myErrorText != null && myErrorText.isVisible()) { myActualSize.height -= my... | initResizeListener |
280,587 | void (ComponentEvent e) { if (!myResizeInProgress) { myActualSize = myPeer.getSize(); if (myErrorText != null && myErrorText.isVisible()) { myActualSize.height -= myErrorText.getMinimumSize().height; } } } | componentResized |
280,588 | void () { Window window = getWindow(); if (window != null && myResizeListener != null) { window.removeComponentListener(myResizeListener); myResizeListener = null; } } | disposeResizeListener |
280,589 | void (@Nullable com.intellij.openapi.ui.DoNotAskOption doNotAsk) { myDoNotAsk = doNotAsk; } | setDoNotAskOption |
280,590 | void (@Nullable DoNotAskOption doNotAsk) { myDoNotAsk = doNotAsk; } | setDoNotAskOption |
280,591 | boolean () { return true; } | postponeValidation |
280,592 | boolean () { return myDialogPanel == null; } | continuousValidation |
280,593 | List<ValidationInfo> () { List<ValidationInfo> result = new ArrayList<>(); ValidationInfo vi = doValidate(); if (vi != null) { result.add(vi); } var dialogPanel = myDialogPanel; if (dialogPanel != null) { result.addAll(dialogPanel.validateAll()); } return result; } | doValidateAll |
280,594 | void (int delay) { myValidationDelay = delay; } | setValidationDelay |
280,595 | void (@NotNull List<ValidationInfo> info) { if (!myInfo.equals(info)) { SwingUtilities.invokeLater(() -> { if (myDisposed) return; setErrorInfoAll(info); getOKAction().setEnabled(ContainerUtil.all(info, info1 -> info1.okEnabled)); }); } } | updateErrorInfo |
280,596 | void () { myOKAction = new OkAction(); myCancelAction = new CancelAction(); myHelpAction = new HelpAction(this::doHelpAction); } | createDefaultActions |
280,597 | void (boolean undecorated) { myPeer.setUndecorated(undecorated); } | setUndecorated |
280,598 | void (@NotNull MouseListener listener) { myPeer.addMouseListener(listener); } | addMouseListener |
280,599 | void (@NotNull MouseMotionListener listener) { myPeer.addMouseListener(listener); } | addMouseListener |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.