Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
247,800 | Collection<NotificationParentGroupBean> () { prepareInfo(); return Collections.unmodifiableCollection(myParents.values()); } | getParents |
247,801 | NotificationsConfigurationImpl () { return NotificationsConfigurationImpl.getInstanceImpl(); } | getSettings |
247,802 | NotificationsConfigurableUi () { return new NotificationsConfigurableUi(getSettings()); } | createUi |
247,803 | void (@NotNull AnActionEvent e) { new DialogWrapper(e.getProject()) { private JPanel myPanel; { init(); setResizable(false); } @Override protected Action @NotNull [] createLeftSideActions() { return new Action[]{new AbstractAction(IdeBundle.message("button.repaint.icons")) { @Override public void actionPerformed(Action... | actionPerformed |
247,804 | void (ActionEvent e) { if (myPanel != null) { myPanel.removeAll(); fillPanel(myPanel); myPanel.revalidate(); } } | actionPerformed |
247,805 | JComponent () { myPanel = new JPanel(); myPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS)); fillPanel(myPanel); return myPanel; } | createCenterPanel |
247,806 | void (JPanel panel) { panel.add(createIconsRow(NotificationType.INFORMATION, true)); panel.add(createIconsRow(NotificationType.INFORMATION, false)); panel.add(createIconsRow(NotificationType.WARNING, true)); panel.add(createIconsRow(NotificationType.WARNING, false)); panel.add(createIconsRow(NotificationType.ERROR, tru... | fillPanel |
247,807 | JPanel (@NotNull NotificationType notificationType, boolean forToolWindow) { JPanel row = new JPanel(); row.setLayout(new BoxLayout(row, BoxLayout.X_AXIS)); for (int i = 0; i <= 10; i++) { LayeredIcon icon = IdeNotificationArea.createIconWithNotificationCount(row, notificationType, i, forToolWindow); JBLabel label = ne... | createIconsRow |
247,808 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
247,809 | boolean () { return UISettings.getInstance().getHideToolStripes() || UISettings.getInstance().getPresentationMode(); } | isAvailable |
247,810 | String () { return IdeNotificationArea.WIDGET_ID; } | getId |
247,811 | String () { return UIBundle.message("status.bar.notifications.widget.name"); } | getDisplayName |
247,812 | boolean (@NotNull Project project) { return isAvailable(); } | isAvailable |
247,813 | StatusBarWidget (@NotNull Project project) { return new IdeNotificationArea(); } | createWidget |
247,814 | boolean (@NotNull StatusBar statusBar) { return isAvailable(); } | canBeEnabledOn |
247,815 | WidgetPresentation () { return null; } | getPresentation |
247,816 | void () { myStatusBar = null; UIUtil.dispose(myComponent.get()); } | dispose |
247,817 | void (@NotNull StatusBar statusBar) { myStatusBar = statusBar; Project project = myStatusBar.getProject(); if (project != null && !project.isDisposed()) { new ClickListener() { @Override public boolean onClick(@NotNull MouseEvent e, int clickCount) { if (!project.isDisposed()) { ActionCenter.toggleLog(project); } retur... | install |
247,818 | boolean (@NotNull MouseEvent e, int clickCount) { if (!project.isDisposed()) { ActionCenter.toggleLog(project); } return true; } | onClick |
247,819 | String () { return WIDGET_ID; } | ID |
247,820 | void (@Nullable Project project) { if (project == null || project.isDisposed()) { return; } List<Notification> notifications = NotificationsToolWindowFactory.Companion.getStateNotifications(project); updateIconOnStatusBar(notifications); int count = notifications.size(); myComponent.get().setToolTipText(count > 0 ? UIB... | updateStatus |
247,821 | void (List<? extends Notification> notifications) { myComponent.get().setIcon(getActionCenterNotificationIcon(notifications)); } | updateIconOnStatusBar |
247,822 | Icon (List<? extends Notification> notifications) { for (Notification notification : notifications) { if (notification.isSuggestionType() && notification.isImportantSuggestion() || notification.getType() == NotificationType.ERROR) { if (ExperimentalUI.isNewUI()) return NOTIFICATION_ICON.getErrorIcon(); return AllIcons.... | getActionCenterNotificationIcon |
247,823 | LayeredIcon (JComponent component, NotificationType type, int size, boolean forToolWindow) { LayeredIcon icon = new LayeredIcon(2); Icon baseIcon = getPendingNotificationsIcon(type, forToolWindow); icon.setIcon(baseIcon, 0); if (size > 0) { //noinspection UseJBColor Color textColor = type == NotificationType.ERROR || t... | createIconWithNotificationCount |
247,824 | JComponent () { return myComponent.get(); } | getComponent |
247,825 | Icon (NotificationType maximumType, boolean forToolWindow) { if (maximumType != null) { return switch (maximumType) { case WARNING -> forToolWindow ? AllIcons.Toolwindows.WarningEvents : AllIcons.Ide.Notification.WarningEvents; case ERROR -> forToolWindow ? AllIcons.Toolwindows.ErrorEvents : AllIcons.Ide.Notification.E... | getPendingNotificationsIcon |
247,826 | boolean (Object o) { if (this == o) return true; if (!(o instanceof TextIcon icon)) return false; if (myWidth != icon.myWidth) return false; if (!myComponent.equals(icon.myComponent)) return false; if (!myStr.equals(icon.myStr)) return false; return true; } | equals |
247,827 | int () { int result = myStr.hashCode(); result = 31 * result + myComponent.hashCode(); result = 31 * result + myWidth; return result; } | hashCode |
247,828 | void (Component c, Graphics g, int x, int y) { Graphics2D g2 = (Graphics2D)g; UISettings.setupAntialiasing(g); Font originalFont = g.getFont(); Color originalColor = g.getColor(); g.setFont(myFont); FontMetrics fm = SwingUtilities2.getFontMetrics((JComponent)c, g); boolean isTwoChar = myStr.length() == 2; float center ... | paintIcon |
247,829 | int () { return myBaseIcon.getIconWidth(); } | getIconWidth |
247,830 | int () { return myBaseIcon.getIconHeight(); } | getIconHeight |
247,831 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(!ActionCenter.getNotifications(e.getProject()).isEmpty()); } | update |
247,832 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
247,833 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project != null) { ActionCenter.expireNotifications(project); } } | actionPerformed |
247,834 | void (@NotNull AnActionEvent event) { new NotificationDialog(event.getProject()).show(); } | actionPerformed |
247,835 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
247,836 | String () { return "NotificationTestAction"; } | getDimensionServiceKey |
247,837 | JComponent () { JPanel panel = new JPanel(new BorderLayout(10, 10)); panel.add(BorderLayout.CENTER, new JScrollPane(myMessage)); return panel; } | createCenterPanel |
247,838 | void (ActionEvent e) { setExamples(""" // Example 1 Icon:/toolwindows/toolWindowChanges.png Title:Deleted Branch Content:Unmerged commits discarded Actions:Restore,View Commits,Delete Tracked Branch // Example 2 Type:warn Title:Title Subtitle:Subtitle Content:Foo<br>Bar Sticky -- // Description Type:info/error/warn Ico... | actionPerformed |
247,839 | void (ActionEvent e) { setExamples(""" // Example Toolwindow Content:Build completed successfully in 7 s 851 ms -- // Description: Notifications shows for toolwindow TODO Toolwindow Type:info/error/warn Icon: Title: Content: Content: -- """); } | actionPerformed |
247,840 | void () { PropertiesComponent.getInstance().setValue(MESSAGE_KEY, StringUtil.nullize(myMessage.getText(), true)); super.doCancelAction(); } | doCancelAction |
247,841 | void () { newNotification(myMessage.getText()); } | doOKAction |
247,842 | void (@NotNull String text) { try { myMessage.getDocument().insertString(0, text, null); } catch (BadLocationException ignore) { } } | setExamples |
247,843 | void (@NotNull String text) { List<NotificationInfo> notifications = new ArrayList<>(); NotificationInfo notification = null; for (String line : StringUtil.splitByLines(text, false)) { if (line.length() == 0) { if (notification != null) { notification = null; continue; } } if (line.startsWith("//")) { continue; } if (l... | newNotification |
247,844 | Notification () { if (myNotification == null) { Icon icon = StringUtil.isEmpty(myIcon) ? null : IconLoader.findIcon(myIcon, NotificationInfo.class.getClassLoader()); String displayId = mySticky ? Holder.TEST_STICKY_GROUP.getDisplayId() : TEST_GROUP_ID; if (myToolwindow) { displayId = Holder.TEST_TOOLWINDOW_GROUP.getDis... | getNotification |
247,845 | void (@NotNull AnActionEvent e) { } | actionPerformed |
247,846 | void (@Nullable String icon) { myIcon = icon; } | setIcon |
247,847 | void (@Nullable String title) { myTitle = title; } | setTitle |
247,848 | void (@Nullable String subtitle) { mySubtitle = subtitle; } | setSubtitle |
247,849 | void (String help) { myHelp = help; } | setHelp |
247,850 | void (boolean addListener) { myAddListener = addListener; } | setAddListener |
247,851 | void (@NotNull String content) { if (myContent == null) { myContent = new ArrayList<>(); } myContent.add(content); } | addContent |
247,852 | void (@NotNull List<String> actions) { myActions = actions; } | setActions |
247,853 | void (boolean sticky) { mySticky = sticky; } | setSticky |
247,854 | void (String remindLaterHandlerId) { myRemindLaterHandlerId = remindLaterHandlerId; } | setRemindLaterHandlerId |
247,855 | void (boolean suggestionType) { mySuggestionType = suggestionType; } | setSuggestionType |
247,856 | void (boolean importantSuggestion) { myImportantSuggestion = importantSuggestion; } | setImportantSuggestion |
247,857 | void (boolean toolwindow) { myToolwindow = toolwindow; } | setToolwindow |
247,858 | void (@Nullable String type) { if ("info".equals(type)) { myType = NotificationType.INFORMATION; } else if ("error".equals(type)) { myType = NotificationType.ERROR; } else if ("warn".equals(type)) { myType = NotificationType.WARNING; } } | setType |
247,859 | void (@NotNull Notification notification, @NotNull HyperlinkEvent event) { if (myNotification != null && MessageDialogBuilder.yesNo("Notification Listener", event.getDescription() + " Expire?").guessWindowAndAsk()) { myNotification.expire(); myNotification = null; } } | hyperlinkUpdate |
247,860 | void (@NotNull AnActionEvent e) { if (myNotification == null) { return; } Notification.get(e); if (MessageDialogBuilder.yesNo("AnAction", getTemplatePresentation().getText() + " Expire?").guessWindowAndAsk()) { myNotification.expire(); myNotification = null; } } | actionPerformed |
247,861 | void (ButtonUI ui) { if (ui instanceof StickyButtonUI) { super.setUI(ui); } else { super.setUI(createUI()); } } | setUI |
247,862 | ButtonUI () { return new StickyButtonUI(); } | createUI |
247,863 | Color () { if (/*model.isRollover() || */ model.isSelected()) { return Color.WHITE; } return super.getForeground(); } | getForeground |
247,864 | Float () { UISettings uiSettings = UISettings.getInstance(); if (uiSettings.getOverrideLafFonts()) { return uiSettings.getFontSize2D(); } return StartupUiUtil.getLabelFont().getSize2D(); } | getFontSize |
247,865 | void (HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { final NotificationListener listener1 = notification.getListener(); if (listener1 != null) { NotificationCollector.getInstance().logHyperlinkClicked(notification); listener1.hyperlinkUpdate(notification, e); } } } | hyperlinkUpdate |
247,866 | void (@NotNull JEditorPane editorPane, boolean notificationColor) { HTMLEditorKit kit = new HTMLEditorKitBuilder().withWordWrapViewFactory().withFontResolver(new CSSFontResolver() { @Override public @NotNull Font getFont(@NotNull Font defaultFont, @NotNull AttributeSet attributeSet) { if ("a".equalsIgnoreCase(String.va... | configureHtmlEditorKit |
247,867 | Font (@NotNull Font defaultFont, @NotNull AttributeSet attributeSet) { if ("a".equalsIgnoreCase(String.valueOf(attributeSet.getAttribute(AttributeSet.NameAttribute)))) { return UIUtil.getLabelFont(); } return defaultFont; } | getFont |
247,868 | Color () { return JBColor.namedColor("Notification.linkForeground", JBUI.CurrentTheme.Link.Foreground.ENABLED); } | getLinkButtonForeground |
247,869 | Color () { return JBColor.namedColor("Notification.MoreButton.foreground", new JBColor(0x666666, 0x8C8C8C)); } | getMoreButtonForeground |
247,870 | Color () { return JBColor.namedColor("Notification.MoreButton.background", new JBColor(0xE3E3E3, 0x3A3C3D)); } | getMoreButtonBackground |
247,871 | Icon (@NotNull Notification notification) { Icon icon = notification.getIcon(); if (icon != null) { return icon; } return switch (notification.getType()) { case WARNING -> AllIcons.General.BalloonWarning; case ERROR -> AllIcons.General.BalloonError; case INFORMATION, IDE_UPDATE -> AllIcons.General.BalloonInformation; }... | getIcon |
247,872 | MessageType (@NotNull Notification notification) { return switch (notification.getType()) { case WARNING -> MessageType.WARNING; case ERROR -> MessageType.ERROR; case INFORMATION, IDE_UPDATE -> MessageType.INFO; }; } | getMessageType |
247,873 | void (@NotNull NotificationParentGroupBean parent, @NotNull DefaultMutableTreeNode node, @NotNull Map<NotificationParentGroupBean, List<DefaultMutableTreeNode>> parentChildrenTable) { for (NotificationParentGroupBean child : NotificationParentGroup.getChildren(parent)) { DefaultMutableTreeNode childNode = new DefaultMu... | addParentGroup |
247,874 | int () { return SystemInfo.isMac ? 4 : 3; } | getColumnCount |
247,875 | String (int column) { return IdeBundle.message(switch (column) { case NotificationsTreeTable.ID_COLUMN -> "notifications.configurable.column.group"; case NotificationsTreeTable.LOG_COLUMN -> "notifications.configurable.column.log"; case NotificationsTreeTable.READ_ALOUD_COLUMN -> "notifications.configurable.column.read... | getColumnName |
247,876 | Class (int column) { if (NotificationsTreeTable.DISPLAY_TYPE_COLUMN == column) { return NotificationDisplayType.class; } if (NotificationsTreeTable.LOG_COLUMN == column) { return Boolean.class; } if (NotificationsTreeTable.READ_ALOUD_COLUMN == column) { return Boolean.class; } return TreeTableModel.class; } | getColumnClass |
247,877 | boolean (Object node, int column) { return column > 0 && ((DefaultMutableTreeNode)node).getUserObject() instanceof NotificationSettingsWrapper; } | isCellEditable |
247,878 | Object (Object node, int column) { if (column == 0) { return node; } Object object = ((DefaultMutableTreeNode)node).getUserObject(); if (object instanceof NotificationParentGroupBean) { return null; } NotificationSettingsWrapper wrapper = (NotificationSettingsWrapper)object; return switch (column) { case NotificationsT... | getValueAt |
247,879 | void (Object value, Object node, int column) { NotificationSettingsWrapper wrapper = (NotificationSettingsWrapper)((DefaultMutableTreeNode)node).getUserObject(); switch (column) { case NotificationsTreeTable.DISPLAY_TYPE_COLUMN -> wrapper.setDisplayType((NotificationDisplayType)value); case NotificationsTreeTable.LOG_C... | setValueAt |
247,880 | void (JTree tree) { myTree = tree; tree.setRootVisible(false); } | setTree |
247,881 | TreePath (int row) { Pair<DefaultMutableTreeNode, Object> rowValue = getRowValue(row); if (rowValue.second instanceof NotificationSettingsWrapper) { ((NotificationSettingsWrapper)rowValue.second).remove(); } else { removeChildSettings(rowValue.first); } return removeNode(rowValue.first); } | removeRow |
247,882 | void (DefaultMutableTreeNode node) { int count = node.getChildCount(); for (int i = 0; i < count; i++) { DefaultMutableTreeNode child = (DefaultMutableTreeNode)node.getChildAt(i); Object object = child.getUserObject(); if (object instanceof NotificationSettingsWrapper) { ((NotificationSettingsWrapper)object).remove(); ... | removeChildSettings |
247,883 | TreePath (DefaultMutableTreeNode node) { DefaultMutableTreeNode parent = (DefaultMutableTreeNode)node.getParent(); if (parent != null) { IndexTreePathState state = new IndexTreePathState(TreeUtil.getPathFromRoot(node)); removeNodeFromParent(node); if (parent.isLeaf()) { return removeNode(parent); } return state.getRest... | removeNode |
247,884 | List<NotificationSettingsWrapper> () { return mySettings; } | getAllSettings |
247,885 | void (final AbstractButton b) { super.installDefaults(b); b.setFont(UIManager.getFont("Button.font").deriveFont(Font.BOLD, FONT_SIZE.get())); } | installDefaults |
247,886 | void (final Graphics g, final JComponent c) { Graphics2D g2 = (Graphics2D) g.create(); try { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); //noinspection unchecked B button = (B) c; int width = button.getWidth(); int height = button.getHeight(); int arcSize = getArcSize(); if ... | paint |
247,887 | Color (@NotNull B button) { return Gray._100; } | getFocusColor |
247,888 | Color (final @NotNull B button) { return JBColor.GRAY; } | getSelectionColor |
247,889 | Color (final @NotNull B button) { return JBColor.LIGHT_GRAY; } | getRolloverColor |
247,890 | Color (final @NotNull B button) { return null; } | getBackgroundColor |
247,891 | int () { return JBUIScale.scale(10); } | getArcSize |
247,892 | void (@NotNull String text, @NotNull Key outputType) { myAnsiEscapeDecoder.escapeText(text, outputType, this); } | notifyTextAvailable |
247,893 | void (@NotNull String text, @NotNull Key attributes) { super.notifyTextAvailable(text, attributes); } | coloredTextAvailable |
247,894 | void (@NotNull String vagrantFolder) { myVagrantFolder = vagrantFolder; } | setVagrantFolder |
247,895 | String () { return myVagrantFolder; } | getVagrantFolder |
247,896 | void (String machineName) { myMachineName = machineName; } | setMachineName |
247,897 | void (Element element) { final String folder = StringUtil.notNullize(element.getAttributeValue(VAGRANT_FOLDER)); setVagrantFolder(PathUtil.toSystemDependentName(folder)); setMachineName(element.getAttributeValue(MACHINE_NAME)); } | load |
247,898 | void (Element element) { element.setAttribute(VAGRANT_FOLDER, PathUtil.toSystemIndependentName(getVagrantFolder())); if (StringUtil.isNotEmpty(getMachineName())) { element.setAttribute(MACHINE_NAME, getMachineName()); } } | save |
247,899 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VagrantBasedCredentialsHolder holder = (VagrantBasedCredentialsHolder)o; if (!myVagrantFolder.equals(holder.myVagrantFolder)) return false; if (StringUtil.isNotEmpty(myMachineName) || StringUtil.isNotEmpty(holder... | equals |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.