Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
245,300 | String () { return myNextActionId; } | getNextActionId |
245,301 | String () { return myPrevActionId; } | getPrevActionId |
245,302 | Component (JList<? extends T> list, T value, int index, boolean isSelected, boolean cellHasFocus) { myPanel.removeAll(); myLeftText = null; myRightText = null; myIcon = null; myRightForeground = null; customize(value); Component left = myLeftRenderer.getListCellRendererComponent(list, value, index, isSelected, cellHasF... | getListCellRendererComponent |
245,303 | Icon () { return myRightIcon; } | getRightIcon |
245,304 | void (Icon rightIcon) { myRightIcon = rightIcon; } | setRightIcon |
245,305 | void (@NlsContexts.Label String text) { myLeftText = text; } | setLeftText |
245,306 | void (Icon icon) { myIcon = icon; } | setIcon |
245,307 | void (@NlsContexts.Label String text) { myRightText = text; } | setRightText |
245,308 | void (Color color) { myLeftForeground = color; } | setLeftForeground |
245,309 | void (Color color) { myRightForeground = color; } | setRightForeground |
245,310 | void (@NotNull IdeFrame ideFrame) { cleanupDeliveredNotifications(); } | applicationActivated |
245,311 | void () { cleanupDeliveredNotifications(); } | appClosing |
245,312 | void (@NotNull String name, @NotNull String title, @NotNull String description) { ID notification = invoke(Foundation.getObjcClass("NSUserNotification"), "new"); invoke(notification, "setTitle:", nsString(StringUtil.stripHtml(title, true).replace("%", "%%"))); invoke(notification, "setInformativeText:", nsString(String... | notify |
245,313 | void () { ID center = invoke(Foundation.getObjcClass("NSUserNotificationCenter"), "defaultUserNotificationCenter"); invoke(center, "removeAllDeliveredNotifications"); } | cleanupDeliveredNotifications |
245,314 | void (K key, V value) { } | dispose |
245,315 | void () { if (!myDisposed) { myDisposed = true; removeAll(); } } | dispose |
245,316 | K () { return myKey; } | getKey |
245,317 | V (K key, boolean create) { V value = myContent.get(key); return create && value == null && !myContent.containsKey(key) ? createValue(key, prepare(key)) : value; } | getValue |
245,318 | V (K key, UI ui) { V value = create(ui); myContent.put(key, value); if (value != null) { value.setVisible(false); add(value); } return value; } | createValue |
245,319 | ActionCallback (K key, boolean now) { myKey = key; ActionCallback callback = new ActionCallback(); if (now) { select(callback, key, prepare(key)); } else { selectLater(callback, key); } return callback; } | select |
245,320 | void (ActionCallback callback, K key, UI ui) { if (myKey != key) { callback.setRejected(); } else { V value = myContent.get(key); if (value == null && !myContent.containsKey(key)) { value = createValue(key, ui); } boolean wasFocused = UIUtil.isFocusAncestor(this); for (Component component : getComponents()) { component... | select |
245,321 | void (final ActionCallback callback, final K key) { ModalityState modality = ModalityState.stateForComponent(this); ApplicationManager.getApplication().executeOnPooledThread(() -> { if (!myDisposed) { final UI ui1 = prepare(key); ApplicationManager.getApplication().invokeLater(() -> { if (!myDisposed) { select(callback... | selectLater |
245,322 | void () { Rectangle bounds = new Rectangle(getWidth(), getHeight()); JBInsets.removeFrom(bounds, getInsets()); for (Component component : getComponents()) { component.setBounds(bounds); } } | doLayout |
245,323 | Dimension () { Component component = isPreferredSizeSet() ? null : getVisibleComponent(); if (component == null) return super.getPreferredSize(); // preferred size of a visible component plus border insets of this panel Dimension size = component.getPreferredSize(); JBInsets.addTo(size, getInsets()); // add border of t... | getPreferredSize |
245,324 | Dimension () { Component component = isMinimumSizeSet() ? null : getVisibleComponent(); if (component == null) return super.getMinimumSize(); // minimum size of a visible component plus border insets of this panel Dimension size = component.getMinimumSize(); JBInsets.addTo(size, getInsets()); return size; } | getMinimumSize |
245,325 | void (int index) { super.remove(index); // dispose corresponding entries only IdentityHashMap<K, V> map = new IdentityHashMap<>(); Iterator<Entry<K, V>> it = myContent.entrySet().iterator(); while (it.hasNext()) { Entry<K, V> entry = it.next(); V value = entry.getValue(); if (value != null && this != value.getParent())... | remove |
245,326 | void () { super.removeAll(); // dispose all entries IdentityHashMap<K, V> map = new IdentityHashMap<>(myContent); myContent.clear(); // avoid ConcurrentModificationException map.forEach(this::dispose); } | removeAll |
245,327 | AccessibleContext () { if (accessibleContext == null) { accessibleContext = new AccessibleCardLayoutPanel(); } return accessibleContext; } | getAccessibleContext |
245,328 | AccessibleRole () { return AccessibleRole.PANEL; } | getAccessibleRole |
245,329 | boolean () { return myDisposed; } | isDisposed |
245,330 | void (TabInfo oldSelection, TabInfo newSelection) { fireChanged(new ChangeEvent(myTabs)); } | selectionChanged |
245,331 | void (ChangeEvent event) { for (ChangeListener each : myListeners) { each.stateChanged(event); } } | fireChanged |
245,332 | JComponent () { return myTabs.getComponent(); } | getComponent |
245,333 | void (@NotNull Object key, Object value) { myTabs.getComponent().putClientProperty(key, value); } | putClientProperty |
245,334 | void (@NotNull PrevNextActionsDescriptor installKeyboardNavigation) { myTabs.setNavigationActionBinding(installKeyboardNavigation.getPrevActionId(), installKeyboardNavigation.getNextActionId()); } | setKeyboardNavigation |
245,335 | void (@NotNull ChangeListener listener) { myListeners.add(listener); } | addChangeListener |
245,336 | int () { return myTabs.getTabCount(); } | getTabCount |
245,337 | void (@NotNull String title, Icon icon, @NotNull Component c, String tip, int index) { assert c instanceof JComponent; myTabs.addTab(new TabInfo((JComponent)c).setText(title).setTooltipText(tip).setIcon(icon), index); } | insertTab |
245,338 | void (int tabPlacement) { JBTabsPosition position = switch (tabPlacement) { case SwingConstants.TOP -> JBTabsPosition.top; case SwingConstants.BOTTOM -> JBTabsPosition.bottom; case SwingConstants.LEFT -> JBTabsPosition.left; case SwingConstants.RIGHT -> JBTabsPosition.right; default -> throw new IllegalArgumentExceptio... | setTabPlacement |
245,339 | void (@NotNull MouseListener listener) { myTabs.getComponent().addMouseListener(listener); } | addMouseListener |
245,340 | int () { return myTabs.getIndexOf(myTabs.getSelectedInfo()); } | getSelectedIndex |
245,341 | Component () { final TabInfo selected = myTabs.getSelectedInfo(); return selected != null ? selected.getComponent() : null; } | getSelectedComponent |
245,342 | void (int index) { myTabs.select(getTabAt(index), false); } | setSelectedIndex |
245,343 | Component (int index) { final TabInfo tabInfo = myTabs.getTabAt(index); return myTabs.getTabLabel(tabInfo); } | getTabComponentAt |
245,344 | void (int index) { myTabs.removeTab(getTabAt(index)); } | removeTabAt |
245,345 | TabInfo (int index) { checkIndex(index); return myTabs.getTabAt(index); } | getTabAt |
245,346 | void (int index) { if (index < 0 || index >= getTabCount()) { throw new ArrayIndexOutOfBoundsException("tabCount=" + getTabCount() + " index=" + index); } } | checkIndex |
245,347 | void () { myTabs.getComponent().revalidate(); } | revalidate |
245,348 | Color (int index) { return getTabAt(index).getDefaultForeground(); } | getForegroundAt |
245,349 | void (int index, Color color) { getTabAt(index).setDefaultForeground(color); } | setForegroundAt |
245,350 | Component (int i) { return getTabAt(i).getComponent(); } | getComponentAt |
245,351 | void (int index, @NotNull String title) { getTabAt(index).setText(title); } | setTitleAt |
245,352 | void (int index, String toolTipText) { getTabAt(index).setTooltipText(toolTipText); } | setToolTipTextAt |
245,353 | void (int index, Component c) { getTabAt(index).setComponent(c); } | setComponentAt |
245,354 | void (int index, Icon icon) { getTabAt(index).setIcon(icon); } | setIconAt |
245,355 | void (int index, boolean enabled) { getTabAt(index).setEnabled(enabled); } | setEnabledAt |
245,356 | int () { return myTabs.getPresentation().isSingleRow() ? JTabbedPane.SCROLL_TAB_LAYOUT : JTabbedPane.WRAP_TAB_LAYOUT; } | getTabLayoutPolicy |
245,357 | void (int policy) { boolean singleRow = switch (policy) { case JTabbedPane.SCROLL_TAB_LAYOUT -> true; case JTabbedPane.WRAP_TAB_LAYOUT -> false; default -> throw new IllegalArgumentException("Unsupported tab layout policy: " + policy); }; myTabs.getPresentation().setSingleRow(singleRow); } | setTabLayoutPolicy |
245,358 | void (int index) { } | scrollTabToVisible |
245,359 | void () { myTabs.removeAllTabs(); } | removeAll |
245,360 | void () { myTabs.getComponent().updateUI(); } | updateUI |
245,361 | void (ChangeListener listener) { myListeners.remove(listener); } | removeChangeListener |
245,362 | JBTabs () { return myTabs; } | getTabs |
245,363 | Font (int codePoint, int size, @JdkConstants.FontStyle int style, @NotNull String defaultFontFamily) { return ComplementaryFontsRegistry.getFontAbleToDisplay(codePoint, size, style, defaultFontFamily, null).getFont(); } | getFontAbleToDisplay |
245,364 | JComponent () { return myTabbedPaneWrapper.getComponent(); } | getComponent |
245,365 | void (@NotNull ContentManager manager) { if (myManager != null) { throw new IllegalStateException(); } myManager = manager; myManager.addContentManagerListener(new MyContentManagerListener()); } | setManager |
245,366 | void (PropertyChangeEvent e) { if (Content.PROP_DISPLAY_NAME.equals(e.getPropertyName())) { Content content = (Content)e.getSource(); int index = myTabbedPaneWrapper.indexOfComponent(content.getComponent()); if (index != -1) { myTabbedPaneWrapper.setTitleAt(index, content.getTabName()); } } else if (Content.PROP_DESCRI... | propertyChange |
245,367 | Content () { JComponent selectedComponent = myTabbedPaneWrapper.getSelectedComponent(); return selectedComponent == null ? null : myManager.getContent(selectedComponent); } | getSelectedContent |
245,368 | TabbedPane (int tabPlacement) { return new MyTabbedPane(tabPlacement); } | createTabbedPane |
245,369 | TabbedPaneHolder () { return new MyTabbedPaneHolder(this); } | createTabbedPaneHolder |
245,370 | ContentManager () { return myManager; } | getContentManager |
245,371 | void (int x, int y) { TabbedPaneUI ui = getUI(); int index = ui.tabForCoordinate(this, x, y); if (index < 0 || !myManager.canCloseContents()) { return; } final Content content = myManager.getContent(index); if (content != null && content.isCloseable()) { myManager.removeContent(content, true); } } | closeTabAt |
245,372 | void () { MenuSelectionManager menuSelectionManager = MenuSelectionManager.defaultManager(); menuSelectionManager.clearSelectedPath(); } | hideMenu |
245,373 | void (MouseEvent e) { if (e.isPopupTrigger()) { // Popup doesn't activate clicked tab. showPopup(e.getX(), e.getY()); return; } if (!e.isShiftDown() && (InputEvent.BUTTON1_MASK & e.getModifiers()) > 0) { // RightClick without Shift modifiers just select tab if (MouseEvent.MOUSE_RELEASED == e.getID()) { TabbedPaneUI ui ... | processMouseEvent |
245,374 | ChangeListener () { return new MyModelListener(); } | createChangeListener |
245,375 | void (ChangeEvent e) { Content content = getSelectedContent(); if (content != null) { myManager.setSelectedContent(content); } super.stateChanged(e); } | stateChanged |
245,376 | Content (int x, int y) { TabbedPaneUI ui = getUI(); int index = ui.tabForCoordinate(this, x, y); if (index < 0) { return null; } return myManager.getContent(index); } | getContentAt |
245,377 | void (Component comp, int x, int y) { if (myManager.isEmpty()) return; showPopup(x, y); } | invokePopup |
245,378 | void (int x, int y) { Content content = getContentAt(x, y); if (content == null) { return; } DefaultActionGroup group = new DefaultActionGroup(); group.add(new TabbedContentAction.CloseAction(content)); if (myTabbedPaneWrapper.getTabCount() > 1) { group.add(new TabbedContentAction.CloseAllAction(myManager)); group.add(... | showPopup |
245,379 | Object (@NotNull String dataId) { if (PlatformDataKeys.CONTENT_MANAGER.is(dataId)) { return myManager; } if (PlatformDataKeys.NONEMPTY_CONTENT_MANAGER.is(dataId) && myManager.getContentCount() > 1) { return myManager; } return null; } | getData |
245,380 | void (@NotNull ContentManagerEvent event) { Content content = event.getContent(); myTabbedPaneWrapper.insertTab(content.getTabName(), content.getIcon(), content.getComponent(), content.getDescription(), event.getIndex()); content.addPropertyChangeListener(TabbedPaneContentUI.this); } | contentAdded |
245,381 | void (@NotNull ContentManagerEvent event) { event.getContent().removePropertyChangeListener(TabbedPaneContentUI.this); myTabbedPaneWrapper.removeTabAt(event.getIndex()); } | contentRemoved |
245,382 | void (@NotNull ContentManagerEvent event) { int index = event.getIndex(); if (index != -1 && event.getOperation() != ContentManagerEvent.ContentOperation.remove) { myTabbedPaneWrapper.setSelectedIndex(index); } } | selectionChanged |
245,383 | boolean () { return true; } | isSingleSelection |
245,384 | boolean () { return false; } | isToSelectAddedContent |
245,385 | boolean () { return false; } | canBeEmptySelection |
245,386 | boolean (@NotNull Content content, boolean implicit) { return true; } | canChangeSelectionTo |
245,387 | String () { return UIBundle.message("tabbed.pane.close.tab.action.name"); } | getCloseActionName |
245,388 | String () { return UIBundle.message("tabbed.pane.close.all.tabs.but.this.action.name"); } | getCloseAllButThisActionName |
245,389 | String () { return IdeBundle.message("action.text.select.previous.tab"); } | getPreviousContentActionName |
245,390 | String () { return IdeBundle.message("action.text.select.next.tab"); } | getNextContentActionName |
245,391 | ContentImpl (JComponent component, @Nullable @NlsContexts.TabTitle String displayName, boolean isLockable) { return new ContentImpl(component, displayName, isLockable); } | createContent |
245,392 | ContentManagerImpl (@NotNull ContentUI contentUI, boolean canCloseContents, @NotNull Project project) { return new ContentManagerImpl(contentUI, canCloseContents, project); } | createContentManager |
245,393 | ContentManager (boolean canCloseContents, @NotNull Project project) { return createContentManager(new TabbedPaneContentUI(), canCloseContents, project); } | createContentManager |
245,394 | MessageView (@NotNull Project project) { return project.getService(MessageView.class); } | getInstance |
245,395 | MessageView (@NotNull Project project) { return MessageView.getInstance(project); } | getInstance |
245,396 | void (Content notToRemove, Project project, String contentName) { MessageView messageView = MessageView.getInstance(project); for (Content content : messageView.getContentManager().getContents()) { if (content.isPinned()) continue; if (contentName.equals(content.getDisplayName()) && content != notToRemove) { if (messag... | cleanupContents |
245,397 | void (final @NotNull AnActionEvent e) { super.update(e); e.getPresentation().setEnabled(myManager.getIndexOfContent(myContent) >= 0); } | update |
245,398 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
245,399 | void (@NotNull AnActionEvent e) { myManager.removeContent(myContent, true); } | actionPerformed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.