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(myCom... | 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("co... | 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... | 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; pan... | 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(bu... | 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,... | 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 ? ... | 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.ge... | 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" + ... | 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.... | 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 = gridW... | 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()).w... | 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, SettingsE... | 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).se... | 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.