Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
280,600 | void (@NotNull KeyListener listener) { myPeer.addKeyListener(listener); } | addKeyListener |
280,601 | void (int exitCode, boolean isOk) { logCloseDialogEvent(exitCode); ensureEventDispatchThread(); if (myClosed) return; myClosed = true; myExitCode = exitCode; disposeResizeListener(); if (isOk) { processDoNotAskOnOk(exitCode); } else { processDoNotAskOnCancel(); } Disposer.dispose(myDisposable); } | close |
280,602 | void (int exitCode) { close(exitCode, exitCode != CANCEL_EXIT_CODE); } | close |
280,603 | boolean () { return true; } | isMoveHelpButtonLeft |
280,604 | boolean () { return !ApplicationInfo.contextHelpAvailable() || Registry.is("ide.remove.help.button.from.dialogs", false); } | isRemoveHelpButton |
280,605 | JComponent () { List<Action> actions = new ArrayList<>(ContainerUtil.filter(createActions(), Conditions.notNull())); List<Action> leftSideActions = new ArrayList<>(ContainerUtil.filter(createLeftSideActions(), Conditions.notNull())); Action helpAction = getHelpAction(); boolean addHelpToLeftSide = false; if (isRemoveHelpButton()) { actions.remove(helpAction); } else if (!actions.contains(helpAction) && getHelpId() == null) { helpAction.setEnabled(false); } else if (isMoveHelpButtonLeft() && actions.remove(helpAction) && !leftSideActions.contains(helpAction)) { addHelpToLeftSide = true; } if (!Registry.is("ide.allow.merge.buttons", true)) { actions = flattenOptionsActions(actions); leftSideActions = flattenOptionsActions(leftSideActions); } if (SystemInfoRt.isMac) { Action macOtherAction = ContainerUtil.find(actions, MacOtherAction.class::isInstance); if (macOtherAction != null) { leftSideActions.add(macOtherAction); actions.remove(macOtherAction); } sortActionsOnMac(actions); } List<JButton> leftSideButtons = createButtons(leftSideActions); List<JButton> rightSideButtons = createButtons(actions); myButtonMap.clear(); for (JButton button : ContainerUtil.concat(leftSideButtons, rightSideButtons)) { myButtonMap.put(button.getAction(), button); if (button instanceof JBOptionButton) { optionButtons.add((JBOptionButton)button); } } JComponent result = createSouthPanel(leftSideButtons, rightSideButtons, addHelpToLeftSide); if (LoadingState.COMPONENTS_REGISTERED.isOccurred() && ApplicationManager.getApplication() != null) { Touchbar.setButtonActions(result, leftSideButtons, rightSideButtons, null); } return result; } | createSouthPanel |
280,606 | void (@NotNull List<Action> actions) { actions.sort(Comparator.comparing(action -> Objects.<Integer>requireNonNullElse( (Integer)action.getValue(MAC_ACTION_ORDER), action.getValue(DEFAULT_ACTION) == null ? 0 : DEFAULT_ACTION_ORDER))); } | sortActionsOnMac |
280,607 | JButton (@NotNull Insets insets) { JButton helpButton = createHelpButton(getHelpAction()); setHelpTooltip(helpButton); helpButton.setMargin(insets); return helpButton; } | createHelpButton |
280,608 | JButton (@NotNull Action action) { JButton helpButton = new JButton(action); helpButton.putClientProperty("JButton.buttonType", "help"); helpButton.setText(""); helpButton.addPropertyChangeListener("ancestor", evt -> { if (evt.getNewValue() == null) { HelpTooltip.dispose((JComponent)evt.getSource()); } }); helpButton.getAccessibleContext().setAccessibleName(UIBundle.message("dialog.options.help.button.accessible.name")); helpButton.getAccessibleContext().setAccessibleDescription(ActionsBundle.message("action.HelpTopics.description")); return helpButton; } | createHelpButton |
280,609 | void (@NotNull JButton helpButton) { helpButton.setToolTipText(ActionsBundle.actionDescription("HelpTopics")); } | setHelpTooltip |
280,610 | List<Action> (@NotNull List<? extends Action> actions) { List<Action> newActions = new ArrayList<>(); for (Action action : actions) { newActions.add(action); if (action instanceof OptionAction it) { for (Action option : it.getOptions()) { option.putValue(MAC_ACTION_ORDER, action.getValue(DEFAULT_ACTION) != null ? DEFAULT_ACTION_ORDER - 1 : 0); newActions.add(option); } } } return newActions; } | flattenOptionsActions |
280,611 | boolean () { return false; } | shouldAddErrorNearButtons |
280,612 | DialogStyle () { return DialogStyle.NO_STYLE; } | getStyle |
280,613 | boolean () { return !myCheckBoxDoNotShowDialog.isSelected(); } | toBeShown |
280,614 | List<JButton> (@NotNull List<? extends Action> actions) { List<JButton> buttons = new ArrayList<>(); for (Action action : actions) { buttons.add(createJButtonForAction(action)); } return buttons; } | createButtons |
280,615 | JPanel (@NotNull List<? extends JButton> leftSideButtons, @NotNull List<? extends JButton> rightSideButtons, boolean addHelpToLeftSide) { JPanel panel = new SouthPanel(getStyle()); if (myDoNotAsk != null) { myCheckBoxDoNotShowDialog = new JCheckBox(myDoNotAsk.getDoNotShowMessage()); myCheckBoxDoNotShowDialog.setVisible(myDoNotAsk.canBeHidden()); myCheckBoxDoNotShowDialog.setSelected(!myDoNotAsk.isToBeShown()); DialogUtil.registerMnemonic(myCheckBoxDoNotShowDialog, '&'); } JComponent doNotAskCheckbox = createDoNotAskCheckbox(); JPanel lrButtonsPanel = new NonOpaquePanel(new GridBagLayout()); Insets insets = JBInsets.emptyInsets(); if (!rightSideButtons.isEmpty() || !leftSideButtons.isEmpty()) { GridBag bag = new GridBag().setDefaultInsets(insets); if (!leftSideButtons.isEmpty()) { JPanel buttonsPanel = createButtonsPanel(leftSideButtons); if (!rightSideButtons.isEmpty()) { buttonsPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 20)); // leave some space between button groups } lrButtonsPanel.add(buttonsPanel, bag.next()); } lrButtonsPanel.add(Box.createHorizontalGlue(), bag.next().weightx(1).fillCellHorizontally()); // left strut if (!rightSideButtons.isEmpty()) { JPanel buttonsPanel = createButtonsPanel(rightSideButtons); if (shouldAddErrorNearButtons()) { lrButtonsPanel.add(myErrorText, bag.next()); lrButtonsPanel.add(Box.createHorizontalStrut(10), bag.next()); } lrButtonsPanel.add(buttonsPanel, bag.next()); } if (SwingConstants.CENTER == myButtonAlignment && doNotAskCheckbox == null) { lrButtonsPanel.add(Box.createHorizontalGlue(), bag.next().weightx(1).fillCellHorizontally()); // right strut } } JComponent helpButton = null; if (addHelpToLeftSide) { helpButton = createHelpButton(insets); } JPanel eastPanel = createSouthAdditionalPanel(); if (helpButton != null || doNotAskCheckbox != null || eastPanel != null) { JPanel leftPanel = new JPanel(new BorderLayout()); if (helpButton != null) leftPanel.add(helpButton, BorderLayout.WEST); if (doNotAskCheckbox != null) { doNotAskCheckbox.setBorder(JBUI.Borders.emptyRight(20)); leftPanel.add(doNotAskCheckbox, BorderLayout.CENTER); } if(eastPanel != null) { leftPanel.add(eastPanel, BorderLayout.EAST); } panel.add(leftPanel, BorderLayout.WEST); } panel.add(lrButtonsPanel, BorderLayout.CENTER); if (getStyle() == DialogStyle.COMPACT) { Color color = UIManager.getColor("DialogWrapper.southPanelDivider"); Border line = new CustomLineBorder(color != null ? color : OnePixelDivider.BACKGROUND, 1, 0, 0, 0); panel.setBorder(new CompoundBorder(line, JBUI.Borders.empty(8, 12))); } else { panel.setBorder(JBUI.Borders.emptyTop(8)); } return panel; } | createSouthPanel |
280,616 | JPanel (@NotNull List<? extends JButton> buttons) { return layoutButtonsPanel(buttons); } | createButtonsPanel |
280,617 | JPanel (@NotNull List<? extends JButton> buttons) { JPanel buttonsPanel = new NonOpaquePanel(); buttonsPanel.setLayout(new BoxLayout(buttonsPanel, BoxLayout.X_AXIS)); for (int i = 0; i < buttons.size(); i++) { JComponent button = buttons.get(i); Insets insets = button.getInsets(); buttonsPanel.add(button); if (i < buttons.size() - 1) { int gap = BASE_BUTTON_GAP.get() - insets.left - insets.right; buttonsPanel.add(Box.createRigidArea(new Dimension(gap, 0))); } } return buttonsPanel; } | layoutButtonsPanel |
280,618 | JButton (Action action) { JButton button = createJButtonForAction(action, getRootPane()); int mnemonic = button.getMnemonic(); Object name = action.getValue(Action.NAME); if (mnemonic == KeyEvent.VK_Y && "Yes".equals(name)) { myYesAction = action; } else if (mnemonic == KeyEvent.VK_N && "No".equals(name)) { myNoAction = action; } if (action.getValue(FOCUSED_ACTION) != null) { myPreferredFocusedComponent = button; } return button; } | createJButtonForAction |
280,619 | JButton (@NotNull Action action, @Nullable JRootPane rootPane) { JButton button; if (action instanceof OptionAction optionAction && Registry.is("ide.allow.merge.buttons", true)) { JBOptionButton optionButton = new JBOptionButton(optionAction, optionAction.getOptions()); optionButton.setOptionTooltipText(getDefaultTooltip()); button = optionButton; } else { button = action instanceof DialogWrapperAction ? new JButton(action) : new JButton(action) { @Override protected void fireActionPerformed(ActionEvent event) { Window window = ComponentUtil.getWindow(this); DialogWrapper wrapper = window instanceof DialogWrapperDialog dwd ? dwd.getDialogWrapper() : null; if (wrapper != null && (wrapper.myClosed || wrapper.myPerformAction)) return; if (wrapper != null) wrapper.myPerformAction = true; try (AccessToken ignore = SlowOperations.startSection(SlowOperations.ACTION_PERFORM)) { super.fireActionPerformed(event); } finally { if (wrapper != null) wrapper.myPerformAction = false; } } }; } if (SystemInfoRt.isMac) { button.putClientProperty("JButton.buttonType", "text"); } Pair<Integer, @Nls String> pair = extractMnemonic(button.getText()); button.setText(pair.second); int mnemonic = pair.first; Object value = action.getValue(Action.MNEMONIC_KEY); if (value instanceof Integer) { mnemonic = (Integer)value; } button.setMnemonic(mnemonic); if (action.getValue(DEFAULT_ACTION) != null) { if (rootPane != null) { rootPane.setDefaultButton(button); } } return button; } | createJButtonForAction |
280,620 | void (ActionEvent event) { Window window = ComponentUtil.getWindow(this); DialogWrapper wrapper = window instanceof DialogWrapperDialog dwd ? dwd.getDialogWrapper() : null; if (wrapper != null && (wrapper.myClosed || wrapper.myPerformAction)) return; if (wrapper != null) wrapper.myPerformAction = true; try (AccessToken ignore = SlowOperations.startSection(SlowOperations.ACTION_PERFORM)) { super.fireActionPerformed(event); } finally { if (wrapper != null) wrapper.myPerformAction = false; } } | fireActionPerformed |
280,621 | DialogWrapperPeer (@NotNull Component parent, boolean canBeParent) { return DialogWrapperPeerFactory.getInstance().createPeer(this, parent, canBeParent); } | createPeer |
280,622 | DialogWrapperPeer (Window owner, boolean canBeParent, IdeModalityType ideModalityType) { return DialogWrapperPeerFactory.getInstance().createPeer(this, owner, canBeParent, ideModalityType); } | createPeer |
280,623 | DialogWrapperPeer (Window owner, boolean canBeParent, boolean applicationModalIfPossible) { return createPeer(owner, canBeParent, applicationModalIfPossible ? IdeModalityType.IDE : IdeModalityType.PROJECT); } | createPeer |
280,624 | DialogWrapperPeer (@Nullable Project project, boolean canBeParent, @NotNull IdeModalityType ideModalityType) { return DialogWrapperPeerFactory.getInstance().createPeer(this, project, canBeParent, ideModalityType); } | createPeer |
280,625 | DialogWrapperPeer (@Nullable Project project, boolean canBeParent) { return DialogWrapperPeerFactory.getInstance().createPeer(this, project, canBeParent); } | createPeer |
280,626 | void () { myPeer.toFront(); } | toFront |
280,627 | void () { myPeer.toBack(); } | toBack |
280,628 | boolean (boolean autoAdjustable) { JRootPane rootPane = getRootPane(); if (rootPane == null) return false; rootPane.putClientProperty(NO_AUTO_RESIZE, autoAdjustable ? null : Boolean.TRUE); return true; } | setAutoAdjustable |
280,629 | boolean () { JRootPane rootPane = getRootPane(); return rootPane == null || rootPane.getClientProperty(NO_AUTO_RESIZE) == null; } | isAutoAdjustable |
280,630 | void () { ensureEventDispatchThread(); myValidationAlarm.cancelAllRequests(); myDisposed = true; for (JButton button : myButtonMap.values()) { button.setAction(null); // avoid memory leak via KeyboardManager } myButtonMap.clear(); JRootPane rootPane = getRootPane(); // if rootPane = null, dialog has already been disposed if (rootPane != null) { if (myActualSize != null && isAutoAdjustable()) { setSize(myActualSize.width, myActualSize.height); } myPeer.dispose(); } } | dispose |
280,631 | void (@Nullable JRootPane rootPane) { if (rootPane == null) return; // Must be preserved: // Component#appContext, Component#appContext, Container#component // JRootPane#contentPane due to popup recycling & our border styling // Must be cleared: // JComponent#clientProperties, contentPane children RepaintManager.currentManager(rootPane).removeInvalidComponent(rootPane); Container contentPane = rootPane.getContentPane(); if (contentPane != null) contentPane.removeAll(); clearOwnFields(rootPane, field -> { String clazz = field.getDeclaringClass().getName(); // keep AWT and Swing fields intact, except some if (!clazz.startsWith("java.") && !clazz.startsWith("javax.")) { return true; } String name = field.getName(); return "clientProperties".equals(name); }); } | cleanupRootPane |
280,632 | void (@Nullable Window window) { if (window == null) return; SwingUtilities.invokeLater(() -> { for (WindowListener listener : window.getWindowListeners()) { if (listener.getClass().getName().startsWith("com.intellij.")) { //LOG.warn("Stale listener: " + listener); window.removeWindowListener(listener); } } }); } | cleanupWindowListeners |
280,633 | void () { if (getCancelAction().isEnabled()) { close(CANCEL_EXIT_CODE); } } | doCancelAction |
280,634 | void () { if (myDoNotAsk != null && myDoNotAsk.shouldSaveOptionsOnCancel() && myDoNotAsk.canBeHidden()) { myDoNotAsk.setToBeShown(toBeShown(), CANCEL_EXIT_CODE); } } | processDoNotAskOnCancel |
280,635 | void (AWTEvent source) { recordAction("DialogCancelAction", source); doCancelAction(); } | doCancelAction |
280,636 | void () { JButton button = getRootPane().getDefaultButton(); if (button != null) { button.doClick(); } } | clickDefaultButton |
280,637 | void () { doOKAction(); } | performOKAction |
280,638 | List<ValidationInfo> () { return doValidateAll(); } | performValidateAll |
280,639 | void () { if (getOKAction().isEnabled()) { applyFields(); close(OK_EXIT_CODE); } } | doOKAction |
280,640 | void () { if (myDialogPanel != null) { myDialogPanel.apply(); } } | applyFields |
280,641 | void (int exitCode) { if (myDoNotAsk != null && myDoNotAsk.canBeHidden()) { myDoNotAsk.setToBeShown(toBeShown(), exitCode); } } | processDoNotAskOnOk |
280,642 | boolean () { return myCrossClosesWindow; } | shouldCloseOnCross |
280,643 | Action () { return myOKAction; } | getOKAction |
280,644 | Action () { return myCancelAction; } | getCancelAction |
280,645 | Action () { return myHelpAction; } | getHelpAction |
280,646 | boolean () { return false; } | isProgressDialog |
280,647 | boolean () { return isProgressDialog(); } | isModalProgress |
280,648 | Container () { return myPeer.getContentPane(); } | getContentPane |
280,649 | void () { myPeer.validate(); } | validate |
280,650 | void () { myPeer.repaint(); } | repaint |
280,651 | int () { return myExitCode; } | getExitCode |
280,652 | float () { return myHorizontalStretch; } | getHorizontalStretch |
280,653 | float () { return myVerticalStretch; } | getVerticalStretch |
280,654 | void (float hStretch) { myHorizontalStretch = hStretch; } | setHorizontalStretch |
280,655 | void (float vStretch) { myVerticalStretch = vStretch; } | setVerticalStretch |
280,656 | Window () { return myPeer.getOwner(); } | getOwner |
280,657 | Window () { return myPeer.getWindow(); } | getWindow |
280,658 | JComponent () { return (JComponent)myPeer.getContentPane(); } | getContentPanel |
280,659 | JRootPane () { return myPeer.getRootPane(); } | getRootPane |
280,660 | Dimension () { return myPeer.getSize(); } | getSize |
280,661 | void () { ensureEventDispatchThread(); myErrorText = new ErrorText(createContentPaneBorder(), getErrorTextAlignment()); myErrorText.setVisible(false); ComponentAdapter resizeListener = new ComponentAdapter() { private int myHeight; @Override public void componentResized(ComponentEvent e) { resize(e); } @Override public void componentShown(ComponentEvent e) { resize(e); } @Override public void componentHidden(ComponentEvent e) { resize(e); } private void resize(ComponentEvent event) { int height = !myErrorText.isVisible() ? 0 : event.getComponent().getHeight(); if (height != myHeight) { myHeight = height; myResizeInProgress = true; myErrorText.setMinimumSize(new Dimension(0, height)); JRootPane root = myPeer.getRootPane(); if (root != null) { root.validate(); } if (myActualSize != null && !shouldAddErrorNearButtons()) { myPeer.setSize(myActualSize.width, myActualSize.height + height); } myErrorText.revalidate(); myResizeInProgress = false; } } }; myErrorText.addComponentListener(resizeListener); Disposer.register(myDisposable, () -> myErrorText.removeComponentListener(resizeListener)); myRoot.setLayout(createRootLayout()); myPeer.setContentPane(myRoot); AnAction toggleShowOptions = DumbAwareAction.create(e -> expandNextOptionButton()); toggleShowOptions.registerCustomShortcutSet(getDefaultShowPopupShortcut(), myRoot, myDisposable); JComponent titlePane = createTitlePane(); if (titlePane != null) { JPanel northSection = new JPanel(new BorderLayout()); myRoot.add(northSection, BorderLayout.NORTH); northSection.add(titlePane, BorderLayout.CENTER); } JComponent centerSection = new JPanel(new BorderLayout()); myRoot.add(centerSection, BorderLayout.CENTER); JComponent n = createNorthPanel(); if (n != null) { centerSection.add(n, BorderLayout.NORTH); } JComponent centerPanel = createCenterPanel(); if (centerPanel != null) { centerPanel.putClientProperty(DIALOG_CONTENT_PANEL_PROPERTY, true); centerSection.add(centerPanel, BorderLayout.CENTER); if (centerPanel instanceof DialogPanel dialogPanel) { myPreferredFocusedComponentFromPanel = dialogPanel.getPreferredFocusedComponent(); dialogPanel.registerValidators(myDisposable, map -> { setOKActionEnabled(ContainerUtil.and(map.values(), info -> info.okEnabled)); return Unit.INSTANCE; }); myDialogPanel = dialogPanel; } } boolean isVisualPaddingCompensatedOnComponentLevel = centerPanel == null || centerPanel.getClientProperty(IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY) == null; if (isVisualPaddingCompensatedOnComponentLevel) { // see comment about visual paddings in the MigLayoutBuilder.build myRoot.setBorder(createContentPaneBorder()); } if (myCreateSouthSection) { JPanel southSection = new JPanel(new BorderLayout()); if (!isVisualPaddingCompensatedOnComponentLevel) { southSection.setBorder(JBUI.Borders.empty(0, 12, 8, 12)); } myRoot.add(southSection, BorderLayout.SOUTH); southSection.add(myErrorText, BorderLayout.CENTER); JComponent south = createSouthPanel(); if (south != null) { southSection.add(south, BorderLayout.SOUTH); } } MnemonicHelper.init(myRoot); if (!postponeValidation()) { startTrackingValidation(); } if (SystemInfoRt.isWindows || (SystemInfoRt.isLinux && Registry.is("ide.linux.enter.on.dialog.triggers.focused.button", true))) { installEnterHook(myRoot, myDisposable); } ActionUtil.initActionContextForComponent(myRoot); } | init |
280,662 | void (ComponentEvent e) { resize(e); } | componentResized |
280,663 | void (ComponentEvent e) { resize(e); } | componentShown |
280,664 | void (ComponentEvent e) { resize(e); } | componentHidden |
280,665 | void (ComponentEvent event) { int height = !myErrorText.isVisible() ? 0 : event.getComponent().getHeight(); if (height != myHeight) { myHeight = height; myResizeInProgress = true; myErrorText.setMinimumSize(new Dimension(0, height)); JRootPane root = myPeer.getRootPane(); if (root != null) { root.validate(); } if (myActualSize != null && !shouldAddErrorNearButtons()) { myPeer.setSize(myActualSize.width, myActualSize.height + height); } myErrorText.revalidate(); myResizeInProgress = false; } } | resize |
280,666 | int () { return SwingConstants.LEADING; } | getErrorTextAlignment |
280,667 | LayoutManager () { return new BorderLayout(); } | createRootLayout |
280,668 | void (JComponent root, Disposable disposable) { new DumbAwareAction() { @Override public void actionPerformed(@NotNull AnActionEvent e) { Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); if (owner instanceof JButton && owner.isEnabled()) { ((JButton)owner).doClick(); } } @Override public void update(@NotNull AnActionEvent e) { Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); e.getPresentation().setEnabled(owner instanceof JButton && owner.isEnabled()); } @Override public @NotNull ActionUpdateThread getActionUpdateThread() { return ActionUpdateThread.EDT; } }.registerCustomShortcutSet(CustomShortcutSet.fromString("ENTER"), root, disposable); } | installEnterHook |
280,669 | void (@NotNull AnActionEvent e) { Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); if (owner instanceof JButton && owner.isEnabled()) { ((JButton)owner).doClick(); } } | actionPerformed |
280,670 | void (@NotNull AnActionEvent e) { Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); e.getPresentation().setEnabled(owner instanceof JButton && owner.isEnabled()); } | update |
280,671 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
280,672 | void () { if (myCurrentOptionsButtonIndex >= 0) { optionButtons.get(myCurrentOptionsButtonIndex).closePopup(); } myCurrentOptionsButtonIndex = getEnabledIndexCyclic(optionButtons, myCurrentOptionsButtonIndex, true).orElse(-1); if (myCurrentOptionsButtonIndex >= 0) { optionButtons.get(myCurrentOptionsButtonIndex).showPopup(null, true); } } | expandNextOptionButton |
280,673 | void () { if (!continuousValidation()) { return; } SwingUtilities.invokeLater(() -> { if (!myValidationStarted) { myValidationStarted = true; initValidation(); } }); } | startTrackingValidation |
280,674 | void () { if (myDisposed) { return; } myValidationAlarm.cancelAllRequests(); Runnable validateRequest = () -> { if (myDisposed) { return; } updateErrorInfo(doValidateAll()); if (continuousValidation()) { initValidation(); } }; if (getValidationThreadToUse() == Alarm.ThreadToUse.SWING_THREAD) { // null if headless JRootPane rootPane = getRootPane(); myValidationAlarm.addRequest(validateRequest, myValidationDelay, (!LoadingState.COMPONENTS_REGISTERED.isOccurred() || ApplicationManager.getApplication() == null) ? null : rootPane != null ? ModalityState.stateForComponent(rootPane) : ModalityState.current()); } else { myValidationAlarm.addRequest(validateRequest, myValidationDelay); } } | initValidation |
280,675 | JComponent () { return new JPanel(); } | createContentPane |
280,676 | void () { myPeer.pack(); } | pack |
280,677 | Dimension () { return myPeer.getPreferredSize(); } | getPreferredSize |
280,678 | void (boolean crossClosesWindow) { myCrossClosesWindow = crossClosesWindow; } | setCrossClosesWindow |
280,679 | void (@NlsContexts.Button @NotNull String text) { myCancelAction.putValue(Action.NAME, text); } | setCancelButtonText |
280,680 | void (boolean modal) { myPeer.setModal(modal); } | setModal |
280,681 | boolean () { return myPeer.isModal(); } | isModal |
280,682 | boolean () { return myKeepPopupsOpen; } | isKeepPopupsOpen |
280,683 | void (boolean keepPopupsOpen) { myKeepPopupsOpen = keepPopupsOpen; } | setKeepPopupsOpen |
280,684 | void (@NotNull Runnable action) { myPeer.setOnDeactivationAction(myDisposable, action); } | setOnDeactivationAction |
280,685 | boolean () { return myOKAction.isEnabled(); } | isOKActionEnabled |
280,686 | void (boolean isEnabled) { myOKAction.setEnabled(isEnabled); } | setOKActionEnabled |
280,687 | void (Icon icon) { myOKAction.putValue(Action.SMALL_ICON, icon); } | setOKButtonIcon |
280,688 | void (@NlsContexts.Button @NotNull String text) { myOKAction.putValue(Action.NAME, text); } | setOKButtonText |
280,689 | void (int c) { myOKAction.putValue(Action.MNEMONIC_KEY, c); } | setOKButtonMnemonic |
280,690 | void (@NlsContexts.Tooltip String text) { myOKAction.putValue(Action.SHORT_DESCRIPTION, text); } | setOKButtonTooltip |
280,691 | void () { if (myHelpAction.isEnabled()) { logClickOnHelpDialogEvent(); String helpId = getHelpId(); if (helpId != null) { HelpManager.getInstance().invokeHelp(helpId); } else { LOG.error("null topic; dialog=" + getClass() + "; action=" + getHelpAction().getClass()); } } } | doHelpAction |
280,692 | boolean () { return getExitCode() == OK_EXIT_CODE; } | isOK |
280,693 | boolean () { return myPeer.isVisible(); } | isVisible |
280,694 | boolean () { return myPeer.isShowing(); } | isShowing |
280,695 | void (int width, int height) { myUserBounds.setSize(width, height); myUserSizeSet = true; myPeer.setSize(width, height); } | setSize |
280,696 | void (@NlsContexts.DialogTitle String title) { myPeer.setTitle(title); } | setTitle |
280,697 | boolean () { return myPeer.isResizable(); } | isResizable |
280,698 | void (boolean resizable) { myPeer.setResizable(resizable); } | setResizable |
280,699 | Point () { return myPeer.getLocation(); } | getLocation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.