Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
281,000 | void (String commentText, boolean serviceComment) { if (serviceComment) { myServiceComment = commentText != null; comment.setText(commentText == null ? myCommentText : commentText); } else { myCommentText = StringUtil.isNotEmpty(commentText) ? commentText : emptyComment(); if (!myServiceComment) { comment.setText(myCommentText); } } } | setCommentText |
281,001 | State () { return state; } | getState |
281,002 | void (@NotNull State state) { if (this.state == state || state == State.CANCELLED || mySuspendButton == null) { return; } this.state = state; if (state == State.PLAYING) { mySuspendButton.setIcons(pauseIcon); setCommentText(null, true); } else { mySuspendButton.setIcons(resumeIcon); setCommentText(IdeBundle.message("comment.text.paused"), true); } mySuspendButton.revalidate(); mySuspendButton.repaint(); } | setState |
281,003 | void (JPanel panel, GridBagConstraints gc) { gc.gridx = 0; gc.anchor = GridBagConstraints.LINE_START; gc.fill = GridBagConstraints.HORIZONTAL; if (topSeparatorEnabled) { gc.insets = JBUI.insets(14, 0, 10, 0); gc.gridwidth = gridWidth(); gc.weightx = 1.0; panel.add(mySeparatorComponent, gc); gc.gridy++; } gc.weightx = 0.0; gc.gridwidth = 1; gc.insets = JBUI.insets(topSeparatorEnabled || smallVariant ? 0 : 12, 13, 0, labelAbove ? 13 : 0); panel.add(label, gc); if (labelAbove) { gc.insets = JBUI.insets(4, 13, 4, 0); gc.gridy++; } else { gc.insets = JBUI.insets(topSeparatorEnabled || smallVariant ? 2 : 14, 12, 0, 0); gc.gridx++; } gc.weightx = 1.0; panel.add(myProgressBar, gc); gc.gridx++; myProgressBar.putClientProperty(DECORATED_PANEL_PROPERTY, this); gc.weightx = 0.0; gc.insets = JBUI.insets(labelAbove || topSeparatorEnabled || smallVariant ? 1 : 14, UIUtil.isUnderWin10LookAndFeel() ? 9 : 10, 0, 13); if (cancelAction != null) { if (cancelAsButton) { myCancelButtonAsButton = new JButton(cancelText); myCancelButtonAsButton.addActionListener((e) -> cancelAction.run()); panel.add(myCancelButtonAsButton, gc); } else { myCancelButton = new InplaceButton(cancelIcon, a -> { myCancelButton.setPainting(false); state = State.CANCELLED; cancelAction.run(); }).setFillBg(false); } } if (resumeAction != null && pauseAction != null) { mySuspendButton = new InplaceButton(pauseIcon, a -> { if (state == State.CANCELLED) { return; } if (state == State.PLAYING) { mySuspendButton.setIcons(resumeIcon); state = State.PAUSED; setCommentText(IdeBundle.message("comment.text.resume"), true); pauseAction.run(); } else { mySuspendButton.setIcons(pauseIcon); state = State.PLAYING; setCommentText(IdeBundle.message("comment.text.pause"), true); resumeAction.run(); } }).setFillBg(false); } if (mySuspendButton != null) { addButton(panel, gc, mySuspendButton, false); } if (myCancelButton != null) { if (mySuspendButton != null) { gc.gridx++; } addButton(panel, gc, myCancelButton, true); } if (commentEnabled) { addLabel(panel, gc, comment); } if (text2 != null) { addLabel(panel, gc, text2); text2.setVisible(false); } gc.gridy++; } | addToPanel |
281,004 | void (@NotNull JPanel panel, @NotNull GridBagConstraints gc, @NotNull JComponent label) { gc.gridy++; gc.gridx = labelAbove ? 0 : 1; gc.insets = labelAbove ? JBUI.insets(-1, 13, 0, 13) : JBUI.insets(-1, 12, 0, 13); gc.weightx = 1.0; gc.anchor = GridBagConstraints.LINE_START; gc.fill = GridBagConstraints.HORIZONTAL; panel.add(label, gc); } | addLabel |
281,005 | void (@NotNull JPanel panel, @NotNull GridBagConstraints gc, @NotNull InplaceButton button, boolean cancel) { button.setMinimumSize(button.getPreferredSize()); if (commentEnabled) { button.addMouseListener(new HoverListener(cancel)); } gc.anchor = GridBagConstraints.EAST; gc.fill = GridBagConstraints.NONE; panel.add(button, gc); } | addButton |
281,006 | void (MouseEvent e) { if (myCancel) { setCommentText(cancelText, true); } else { setCommentText(state == State.PLAYING ? IdeBundle.message("comment.text.pause") : IdeBundle.message("comment.text.resume"), true); } } | mouseEntered |
281,007 | void (MouseEvent e) { setCommentText(state == State.PAUSED ? IdeBundle.message("comment.text.paused") : null, true); } | mouseExited |
281,008 | ComponentPanelBuilder (boolean resize) { myResizeY = resize; return this; } | resizeY |
281,009 | ComponentPanelBuilder (boolean resize) { myResizeX = resize; return this; } | resizeX |
281,010 | ComponentPanelBuilder (@NotNull @NlsContexts.Label String labelText) { myLabelText = labelText; return this; } | withLabel |
281,011 | ComponentPanelBuilder () { myLabelOnTop = true; valid = StringUtil.isEmpty(myCommentText) || StringUtil.isEmpty(myHTDescription); return this; } | moveLabelOnTop |
281,012 | ComponentPanelBuilder (UI.Anchor anchor) { myAnchor = anchor; return this; } | anchorLabelOn |
281,013 | ComponentPanelBuilder (@NotNull @NlsContexts.DetailedDescription String comment) { return withComment(comment, true); } | withComment |
281,014 | ComponentPanelBuilder (@NotNull @NlsContexts.DetailedDescription String comment, boolean allowAutoWrapping) { myCommentText = comment; myCommentAllowAutoWrapping = allowAutoWrapping; valid = StringUtil.isEmpty(comment) || StringUtil.isEmpty(myHTDescription); return this; } | withComment |
281,015 | ComponentPanelBuilder (@NotNull Icon icon) { myCommentIcon = icon; return this; } | withCommentIcon |
281,016 | ComponentPanelBuilder (@NotNull HyperlinkListener listener) { myHyperlinkListener = listener; return this; } | withCommentHyperlinkListener |
281,017 | ComponentPanelBuilder (@NotNull JComponent topRightComponent) { myTopRightComponent = topRightComponent; valid = StringUtil.isEmpty(myCommentText) || StringUtil.isEmpty(myHTDescription); return this; } | withTopRightComponent |
281,018 | ComponentPanelBuilder () { myCommentBelow = false; return this; } | moveCommentRight |
281,019 | ComponentPanelBuilder (@NotNull @NlsContexts.Tooltip String description) { myHTDescription = description; valid = StringUtil.isEmpty(myCommentText) || StringUtil.isEmpty(description); return this; } | withTooltip |
281,020 | ComponentPanelBuilder (@NotNull @NlsContexts.LinkLabel String linkText, @NotNull Runnable action) { myHTLinkText = linkText; myHTAction = action; return this; } | withTooltipLink |
281,021 | JPanel () { JPanel panel; if (getDeprecatedBackground() == null) { panel = new NonOpaquePanel(new GridBagLayout()); } else { panel = new JPanel(new GridBagLayout()); UIUtil.applyDeprecatedBackground(panel); UIUtil.applyDeprecatedBackground(myComponent); } GridBagConstraints gc = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, null, 0, 0); addToPanel(panel, gc, false); return panel; } | createPanel |
281,022 | boolean () { return valid; } | constrainsValid |
281,023 | int () { return myCommentBelow ? 2 : myResizeX ? 4 : 3; } | gridWidth |
281,024 | void (JPanel panel, GridBagConstraints gc, boolean splitColumns) { if (constrainsValid()) { new ComponentPanelImpl(splitColumns).addToPanel(panel, gc); } } | addToPanel |
281,025 | Border () { if (StringUtil.isNotEmpty(myCommentText)) { return new JBEmptyBorder(computeCommentInsets(myComponent, myCommentBelow)); } else { return JBUI.Borders.empty(); } } | getCommentBorder |
281,026 | Insets (@NotNull JComponent component, boolean commentBelow) { boolean isMacDefault = UIUtil.isUnderDefaultMacTheme(); boolean isWin10 = UIUtil.isUnderWin10LookAndFeel(); if (commentBelow) { int top = 8, left = 2, bottom = 0; if (component instanceof JRadioButton || component instanceof JCheckBox) { bottom = isWin10 ? 10 : isMacDefault ? 8 : 9; if (component instanceof JCheckBox) { left = UIUtil.getCheckBoxTextHorizontalOffset((JCheckBox)component); // the value returned from this method is already scaled //noinspection UseDPIAwareInsets return new Insets(0, left, JBUIScale.scale(bottom), 0); } else { left = isMacDefault ? 26 : isWin10 ? 17 : 23; } } else if (component instanceof JTextField || component instanceof EditorTextComponent || component instanceof JComboBox || component instanceof ComponentWithBrowseButton) { top = isWin10 ? 3 : 4; left = isWin10 ? 2 : isMacDefault ? 5 : 4; bottom = isWin10 ? 10 : isMacDefault ? 8 : 9; } else if (component instanceof JButton) { top = isWin10 ? 2 : 4; left = isWin10 ? 2 : isMacDefault ? 5 : 4; bottom = 0; } return JBUI.insets(top, left, bottom, 0); } else { int left = 14; if (component instanceof JRadioButton || component instanceof JCheckBox) { left = isMacDefault ? 8 : 13; } else if (component instanceof JTextField || component instanceof EditorTextComponent || component instanceof JComboBox || component instanceof ComponentWithBrowseButton) { left = isMacDefault ? 13 : 14; } return JBUI.insetsLeft(left); } } | computeCommentInsets |
281,027 | JLabel (@Nullable @NlsContexts.DetailedDescription String commentText, boolean isCommentBelow) { return createCommentComponent(commentText, isCommentBelow, MAX_COMMENT_WIDTH, true); } | createCommentComponent |
281,028 | JLabel (@Nullable @NlsContexts.DetailedDescription String commentText, boolean isCommentBelow, int maxLineLength) { return createCommentComponent(commentText, isCommentBelow, maxLineLength, true); } | createCommentComponent |
281,029 | JLabel (@Nullable @NlsContexts.DetailedDescription String commentText, boolean isCommentBelow, int maxLineLength, boolean allowAutoWrapping) { return createCommentComponent(() -> new CommentLabel(""), commentText, isCommentBelow, maxLineLength, allowAutoWrapping); } | createCommentComponent |
281,030 | JLabel (@NotNull Supplier<? extends JBLabel> labelSupplier, @Nullable @NlsContexts.DetailedDescription String commentText, boolean isCommentBelow, int maxLineLength, boolean allowAutoWrapping) { // todo why our JBLabel cannot render html if render panel without frame (test only) boolean isCopyable = SystemProperties.getBooleanProperty("idea.ui.comment.copyable", true); JLabel component = labelSupplier.get().setCopyable(isCopyable).setAllowAutoWrapping(allowAutoWrapping); component.setVerticalTextPosition(SwingConstants.TOP); component.setFocusable(false); if (isCopyable) { setCommentText(component, commentText, isCommentBelow, maxLineLength); } else { component.setText(commentText); } return component; } | createCommentComponent |
281,031 | JLabel (@NotNull @NlsContexts.DetailedDescription String commentText) { return new CommentLabel(commentText); } | createNonWrappingCommentComponent |
281,032 | Font (Font font) { if (ExperimentalUI.isNewUI()) { return JBFont.medium(); } else { return RelativeFont.NORMAL.fromResource("ContextHelp.fontSizeOffset", -2).derive(font); } } | getCommentFont |
281,033 | void (@NotNull JLabel component, @Nullable @NlsContexts.DetailedDescription String commentText, boolean isCommentBelow, int maxLineLength) { if (commentText != null) { @NonNls String css = "<head><style type=\"text/css\">\n" + "a, a:link {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.ENABLED) + ";}\n" + "a:visited {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.VISITED) + ";}\n" + "a:hover {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.HOVERED) + ";}\n" + "a:active {color:#" + ColorUtil.toHex(JBUI.CurrentTheme.Link.Foreground.PRESSED) + ";}\n" + //"body {background-color:#" + ColorUtil.toHex(JBColor.YELLOW) + ";}\n" + // Left for visual debugging "</style>\n</head>"; HtmlChunk text = HtmlChunk.raw(commentText); if (maxLineLength > 0 && commentText.length() > maxLineLength && isCommentBelow) { int width = component.getFontMetrics(component.getFont()).stringWidth(commentText.substring(0, maxLineLength)); text = text.wrapWith(HtmlChunk.div().attr("width", width)); } else { text = text.wrapWith(HtmlChunk.div()); } component.setText(new HtmlBuilder() .append(HtmlChunk.raw(css)) .append(text.wrapWith("body")) .wrapWith("html") .toString()); } } | setCommentText |
281,034 | void (LabelUI ui) { super.setUI(ui); setFont(getCommentFont(getFont())); } | setUI |
281,035 | HyperlinkListener () { return myHyperlinkListener; } | createHyperlinkListener |
281,036 | String () { return myCommentText; } | getCommentText |
281,037 | void (String commentText) { if (!StringUtil.equals(myCommentText, commentText)) { myCommentText = commentText; setCommentTextImpl(commentText); } } | setCommentText |
281,038 | void (String commentText) { ComponentPanelBuilder.setCommentText(comment, commentText, myCommentBelow, MAX_COMMENT_WIDTH); } | setCommentTextImpl |
281,039 | void (JPanel panel, GridBagConstraints gc) { gc.gridx = 0; gc.gridwidth = 1; gc.weightx = 0.0; gc.anchor = GridBagConstraints.LINE_START; if (StringUtil.isNotEmpty(myLabelText)) { if (myLabelOnTop || myTopRightComponent != null) { gc.insets = JBUI.insetsBottom(4); gc.gridx = 1; JPanel topPanel = new JPanel(); topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS)); if (myLabelOnTop) { topPanel.add(label); } if (myTopRightComponent != null) { topPanel.add(new Box.Filler(JBUI.size(UIUtil.DEFAULT_HGAP, 0), JBUI.size(UIUtil.DEFAULT_HGAP, 0), JBUI.size(Integer.MAX_VALUE))); topPanel.add(myTopRightComponent); } panel.add(topPanel, gc); gc.gridy++; } if (!myLabelOnTop) { gc.gridx = 0; switch (myAnchor) { case Top -> { gc.anchor = GridBagConstraints.PAGE_START; gc.insets = JBUI.insets(4, 0, 0, 8); } case Center -> { gc.anchor = GridBagConstraints.LINE_START; gc.insets = JBUI.insetsRight(8); } case Bottom -> { gc.anchor = GridBagConstraints.PAGE_END; gc.insets = JBUI.insets(0, 0, 4, 8); } } panel.add(label, gc); } } gc.gridx += myLabelOnTop ? 0 : 1; gc.weightx = 1.0; gc.insets = JBInsets.emptyInsets(); gc.fill = myResizeY ? GridBagConstraints.BOTH : myResizeX ? GridBagConstraints.HORIZONTAL: GridBagConstraints.NONE; gc.weighty = myResizeY ? 1.0 : 0.0; if (splitColumns) { panel.add(myComponent, gc); } if (StringUtil.isNotEmpty(myHTDescription) || !myCommentBelow) { JPanel componentPanel = new JPanel(); componentPanel.setLayout(new BoxLayout(componentPanel, BoxLayout.X_AXIS)); if (!splitColumns) { componentPanel.add(myComponent); } if (StringUtil.isNotEmpty(myHTDescription)) { ContextHelpLabel lbl = StringUtil.isNotEmpty(myHTLinkText) && myHTAction != null ? ContextHelpLabel.createWithLink(null, myHTDescription, myHTLinkText, myHTAction) : ContextHelpLabel.create(myHTDescription); JBUI.Borders.emptyLeft(7).wrap(lbl); componentPanel.add(lbl); ComponentValidator.getInstance(myComponent).ifPresent(v -> { JLabel iconLabel = new JLabel(); JBUI.Borders.emptyLeft(7).wrap(iconLabel); iconLabel.setVisible(false); componentPanel.add(iconLabel); iconLabel.addMouseListener(new MouseAdapter() { @Override public void mouseEntered(MouseEvent e) { myComponent.dispatchEvent(convertMouseEvent(e)); e.consume(); } @Override public void mouseExited(MouseEvent e) { myComponent.dispatchEvent(convertMouseEvent(e)); e.consume(); } }); myComponent.addPropertyChangeListener("JComponent.outline", evt -> { if (evt.getNewValue() == null) { iconLabel.setVisible(false); lbl.setVisible(true); } else if ("warning".equals(evt.getNewValue())) { iconLabel.setIcon(AllIcons.General.BalloonWarning); iconLabel.setVisible(true); lbl.setVisible(false); } else if ("error".equals(evt.getNewValue())) { iconLabel.setIcon(AllIcons.General.BalloonError); iconLabel.setVisible(true); lbl.setVisible(false); } componentPanel.revalidate(); componentPanel.repaint(); }); }); panel.add(componentPanel, gc); } else if (!myCommentBelow) { if (splitColumns) { gc.gridx ++; gc.weightx = 0; gc.fill = GridBagConstraints.NONE; gc.weighty = 0.0; panel.add(comment, gc); } else { comment.setBorder(getCommentBorder()); componentPanel.add(comment); panel.add(componentPanel, gc); } } } else if (!splitColumns) { panel.add(myComponent, gc); } if (!splitColumns && !myResizeX) { gc.gridx ++; gc.weightx = 1.0; gc.fill = GridBagConstraints.REMAINDER; panel.add(new JPanel(), gc); } gc.fill = GridBagConstraints.HORIZONTAL; gc.weighty = 0.0; if (myCommentBelow) { gc.gridx = 1; gc.gridy++; gc.weightx = 0.0; gc.anchor = GridBagConstraints.NORTHWEST; gc.insets = JBInsets.emptyInsets(); comment.setBorder(getCommentBorder()); panel.add(comment, gc); if (!myResizeX) { gc.gridx ++; gc.weightx = 1.0; gc.fill = GridBagConstraints.REMAINDER; panel.add(new JPanel(), gc); } } myComponent.putClientProperty(DECORATED_PANEL_PROPERTY, this); gc.gridy++; } | addToPanel |
281,040 | void (MouseEvent e) { myComponent.dispatchEvent(convertMouseEvent(e)); e.consume(); } | mouseEntered |
281,041 | void (MouseEvent e) { myComponent.dispatchEvent(convertMouseEvent(e)); e.consume(); } | mouseExited |
281,042 | MouseEvent (MouseEvent e) { Point p = e.getPoint(); SwingUtilities.convertPoint(e.getComponent(), p, myComponent); return new MouseEvent(myComponent, e.getID(), e.getWhen(), e.getModifiers(), p.x, p.y, e.getXOnScreen(), e.getYOnScreen(), e.getClickCount(), e.isPopupTrigger(), e.getButton()); } | convertMouseEvent |
281,043 | PanelGridBuilder (@NotNull PanelBuilder builder) { builders.add((GridBagPanelBuilder)builder); return this; } | add |
281,044 | PanelGridBuilder () { this.expand = true; return this; } | resize |
281,045 | PanelGridBuilder () { this.splitColumns = true; return this; } | splitColumns |
281,046 | JPanel () { JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints gc = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, null, 0, 0); addToPanel(panel, gc); UIUtil.applyDeprecatedBackground(panel); return panel; } | createPanel |
281,047 | boolean () { return builders.stream().allMatch(b -> b.constrainsValid()); } | constrainsValid |
281,048 | int () { return builders.stream().map(b -> b.gridWidth()).max(Integer::compareTo).orElse(0); } | gridWidth |
281,049 | void (JPanel panel, GridBagConstraints gc) { builders.stream().filter(b -> b.constrainsValid()).forEach(b -> b.addToPanel(panel, gc, splitColumns)); if (!expand) { gc.gridx = 0; gc.anchor = GridBagConstraints.PAGE_END; gc.fill = GridBagConstraints.BOTH; gc.weighty = 1.0; gc.insets = JBUI.insets(0); gc.gridwidth = gridWidth(); panel.add(new JPanel(), gc); } } | addToPanel |
281,050 | void (@NotNull PluginDescriptor plugin) { myPlugin = plugin; } | setPluginDescriptor |
281,051 | PluginDescriptor () { return myPlugin; } | getPluginDescriptor |
281,052 | void (@NotNull Component parentComponent) { throw new UnsupportedOperationException(); } | changeReporterAccount |
281,053 | boolean (IdeaLoggingEvent @NotNull [] events, @Nullable String additionalInfo, @NotNull Component parentComponent, @NotNull Consumer<? super SubmittedReportInfo> consumer) { try { consumer.consume(submit(events, parentComponent)); return true; } catch (UnsupportedOperationException e) { Logger.getInstance(getClass()).warn(e); consumer.consume(new SubmittedReportInfo(null, e.getMessage(), SubmittedReportInfo.SubmissionStatus.FAILED)); return false; } } | submit |
281,054 | SubmittedReportInfo (IdeaLoggingEvent[] events, Component parent) { throw new UnsupportedOperationException("'" + getClass().getName() + "' doesn't implement exception submitter API"); } | submit |
281,055 | String () { return myUrl; } | getURL |
281,056 | String () { return myLinkText; } | getLinkText |
281,057 | SubmissionStatus () { return myStatus; } | getStatus |
281,058 | String () { return myMessage; } | getMessage |
281,059 | Throwable () { return myThrowable; } | getThrowable |
281,060 | String () { return myThrowable != null ? StringUtil.getThrowableText(myThrowable) : ""; } | getThrowableText |
281,061 | String () { return "IdeaLoggingEvent[message=" + myMessage + ", throwable=" + getThrowableText() + "]"; } | toString |
281,062 | boolean (final int rc) { return true; } | tryReadStreams |
281,063 | void () { myErrStreamListener.cancel(); myInStreamListener.cancel(); } | cancelListeners |
281,064 | T () { return myInStreamListener; } | getInStreamListener |
281,065 | T () { return myErrStreamListener; } | getErrStreamListener |
281,066 | JComponent () { JPanel panel = new JPanel(new VerticalFlowLayout()); for (UnnamedConfigurable configurable : myConfigurables) { panel.add(configurable.createComponent()); } return panel; } | createComponent |
281,067 | boolean () { for (UnnamedConfigurable myConfigurable : myConfigurables) { if (myConfigurable.isModified()) return true; } return false; } | isModified |
281,068 | void () { for (UnnamedConfigurable myConfigurable : myConfigurables) { myConfigurable.reset(); } } | reset |
281,069 | void () { for (UnnamedConfigurable myConfigurable : myConfigurables) { myConfigurable.disposeUIResources(); } } | disposeUIResources |
281,070 | void (UnnamedConfigurable configurable) { myConfigurables.add(configurable); } | add |
281,071 | void (@NotNull Src src) { myWrapped.resetFrom(mySrcToDstConvertor.apply(src)); } | resetEditorFrom |
281,072 | JComponent () { return myWrapped.createEditor(); } | createEditor |
281,073 | void () { myWrapped.removeSettingsEditorListener(myListener); Disposer.dispose(myWrapped); } | disposeEditor |
281,074 | void (boolean modified) { fireStateChanged(); super.setModified(modified); } | setModified |
281,075 | void (@NotNull ChangeListener listener, @NotNull Disposable parent) { myDispatcher.addListener(listener, parent); } | addChangeListener |
281,076 | void () { myDispatcher.getMulticaster().stateChanged(new ChangeEvent(this)); } | fireStateChanged |
281,077 | String (@NotNull String schemeName) { return FileUtil.sanitizeFileName(schemeName); } | getDefaultFileName |
281,078 | VirtualFile (@Nullable Project project) { return Objects.requireNonNull(VfsUtil.getUserHomeDir()); } | getDefaultDir |
281,079 | Collection<SettingsEditor<T>> () { List<SettingsEditor<T>> result = new ArrayList<>(); List<Pair<String,SettingsEditor<T>>> editors = myGroup.getEditors(); for (int i = 0; i < editors.size(); i++) { result.add(editors.get(i).getSecond()); } return result; } | getEditors |
281,080 | JComponent () { if (myComponent == null) { myComponent = doCreateComponent(); } return myComponent; } | createCompoundEditor |
281,081 | JComponent () { List<Pair<String,SettingsEditor<T>>> editors = myGroup.getEditors(); if (editors.size() == 0) return new JPanel(); if (editors.size() == 1) return editors.get(0).getSecond().getComponent(); JTabbedPane tabs = new JBTabbedPane(); for (int i = 0; i < editors.size(); i++) { Pair<@TabTitle String, SettingsEditor<T>> pair = editors.get(i); tabs.add(pair.getFirst(), pair.getSecond().getComponent()); } tabs.putClientProperty("JTabbedPane.hasFullBorder", Boolean.TRUE); return tabs; } | doCreateComponent |
281,082 | void (String tabName) { List<Pair<String,SettingsEditor<T>>> editors = myGroup.getEditors(); if (myComponent != null && editors.size() > 1) { for (int i = 0; i < editors.size(); i++) { Pair<String, SettingsEditor<T>> pair = editors.get(i); if (StringUtil.equals(tabName, pair.getFirst())) { ((JTabbedPane)myComponent).setSelectedIndex(i); return; } } } } | selectEditor |
281,083 | ShowSettingsUtil () { return ApplicationManager.getApplication().getService(ShowSettingsUtil.class); } | getInstance |
281,084 | SchemeImportException () { myIsWarning = true; return this; } | setWarning |
281,085 | boolean () { return myIsWarning; } | isWarning |
281,086 | boolean () { return myModified; } | isModified |
281,087 | void (final boolean modified) { myModified = modified; } | setModified |
281,088 | S () { return settingsGetter.get(); } | getSettings |
281,089 | UI () { return ReflectionUtil.newInstance(uiClass); } | createUi |
281,090 | String () { return id; } | getId |
281,091 | String () { return displayName; } | getDisplayName |
281,092 | void () { if (ui != null) { ui.reset(getSettings()); } } | reset |
281,093 | JComponent () { if (ui == null) { ui = createUi(); } return ui.getComponent(); } | createComponent |
281,094 | boolean () { return ui != null && ui.isModified(getSettings()); } | isModified |
281,095 | void () { UI ui = this.ui; if (ui != null) { this.ui = null; if (ui instanceof Disposable) { Disposer.dispose((Disposable)ui); } } } | disposeUIResources |
281,096 | void (@NotNull SettingsEditor<Settings> settingsEditor) { setModified(true); } | stateChanged |
281,097 | JComponent () { return myEditor.getComponent(); } | createComponent |
281,098 | void () { myEditor.resetFrom(mySettings); setModified(false); } | reset |
281,099 | void () { if (myEditor != null) { myEditor.removeSettingsEditorListener(myListener); Disposer.dispose(myEditor); } myEditor = null; } | disposeUIResources |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.