Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
245,800 | void (char value) { putValue(Action.MNEMONIC_KEY, Integer.valueOf(value)); } | setMnemonic |
245,801 | void (@NlsActions.ActionText String name) { putValue(Action.NAME, name); } | setName |
245,802 | void (ActionEvent e) { myModel.next(); } | actionPerformed |
245,803 | void (ActionEvent e) { myModel.previous(); } | actionPerformed |
245,804 | void (ActionEvent e) { myModel.finish(); } | actionPerformed |
245,805 | void (ActionEvent e) { myModel.cancel(); } | actionPerformed |
245,806 | WizardStep (T model) { return model.getNextFor(this); } | onNext |
245,807 | WizardStep (T model) { return model.getPreviousFor(this); } | onPrevious |
245,808 | boolean () { return true; } | onCancel |
245,809 | boolean () { return true; } | onFinish |
245,810 | Icon () { return myIcon; } | getIcon |
245,811 | JComponent (WizardNavigationState state) { return null; } | prepare |
245,812 | void (boolean enabled) { PREVIOUS.setEnabled(enabled); NEXT.setEnabled(enabled); CANCEL.setEnabled(enabled); FINISH.setEnabled(enabled); } | setEnabledToAll |
245,813 | void (PressureEvent e) { if (e.getStage() == 2) { panel.setShortcut(new PressureShortcut(e.getStage())); runnable.run(); } } | pressure |
245,814 | void (PressureEvent e) { if (e.getStage() != 2) return; InputEvent inputEvent = new ForceTouchEvent(component, e); ((TransactionGuardImpl)TransactionGuard.getInstance()).performUserActivity(()-> { if (listener != null) listener.eventDispatched(inputEvent); IdeEventQueue.getInstance().getMouseEventDispatcher().processEv... | pressure |
245,815 | void () { super.consume(); pressureEvent.consume(); } | consume |
245,816 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
245,817 | void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); if (JdkEx.isTabbingModeAvailable()) { presentation.setVisible(true); IdeFrame[] frames = WindowManager.getInstance().getAllProjectFrames(); if (frames.length > 1) { ID id = MacUtil.getWindowFromJavaWindow((((ProjectFrameHelper)frames[0])... | update |
245,818 | boolean (@NotNull JFrame frame) { if (JdkEx.isTabbingModeAvailable() && WindowManager.getInstance().getAllProjectFrames().length > 1) { ID id = MacUtil.getWindowFromJavaWindow(frame); int tabs = Foundation.invoke(Foundation.invoke(id, "tabbedWindows"), "count").intValue(); return tabs > 1; } return false; } | isTabbedWindow |
245,819 | void (@NotNull AnActionEvent e) { @Nullable Component component = e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT); Window window = Objects.requireNonNull(ComponentUtil.getWindow(component)); mergeAllWindows(window, true); } | actionPerformed |
245,820 | void (@NotNull Window window, boolean updateTabBars) { Foundation.executeOnMainThread(true, false, () -> { ID id = MacUtil.getWindowFromJavaWindow(window); Foundation.invoke(id, "mergeAllWindows:", ID.NIL); if (MacWinTabsHandler.isVersion2()) { ApplicationManager.getApplication().invokeLater(() -> MacWinTabsHandlerV2.u... | mergeAllWindows |
245,821 | void () { if (JdkEx.isTabbingModeAvailable()) { IdeFrame[] frames = WindowManager.getInstance().getAllProjectFrames(); if (frames.length > 1) { for (IdeFrame frame : frames) { if (!frame.isInFullScreen()) { return; } } if (Foundation.invoke("NSWindow", "userTabbingPreference").intValue() == 2/*NSWindowUserTabbingPrefer... | appStarted |
245,822 | void (@Nullable VirtualFile toSelect, @NotNull Consumer<? super List<VirtualFile>> callback) { if (toSelect != null && toSelect.getParent() != null) { String directoryName; String fileName = null; if (toSelect.isDirectory()) { directoryName = toSelect.getCanonicalPath(); } else { directoryName = toSelect.getParent().ge... | choose |
245,823 | FileDialog (String title, int load) { // This is bad. But sometimes we do not have any windows at all. // On the other hand, it is a bit strange to show a file dialog without an owner // Therefore we should minimize usage of this case. return new FileDialog((Frame)null, title, load); } | createFileDialogWithoutOwner |
245,824 | JComponent (@NotNull JRootPane rootPane, @NotNull JComponent northComponent) { JPanel panel = new NonOpaquePanel(new BorderLayout()); JPanel tabsContainer = new NonOpaquePanel(new BorderLayout()); tabsContainer.setVisible(false); panel.add(tabsContainer, BorderLayout.NORTH); panel.add(northComponent); rootPane.putClien... | _wrapRootPaneNorthSide |
245,825 | void (@NotNull IdeFrameImpl frame) { if (JdkEx.setTabbingMode(frame, getWindowId(), null)) { Foundation.invoke("NSWindow", "setAllowsAutomaticWindowTabbing:", true); } } | _fastInit |
245,826 | boolean (@NotNull IdeFrameImpl frame, @NotNull CoroutineScope coroutineScope) { boolean allowed = JdkEx.setTabbingMode(frame, getWindowId(), null); if (allowed) { Foundation.invoke("NSWindow", "setAllowsAutomaticWindowTabbing:", true); IdeGlassPaneImplKt.executeOnCancelInEdt(coroutineScope, () -> { updateTabBars(false)... | initFrame |
245,827 | void () { // update tab logic only after call [NSWindow makeKeyAndOrderFront] and after add frame to window manager ApplicationManager.getApplication().invokeLater(() -> updateTabBars(true)); } | setProject |
245,828 | void () { } | enteringFullScreen |
245,829 | void () { if (!myFrame.isDisplayable() || !myFrame.isShowing()) { return; } Point locationOnScreen = myFrame.getLocationOnScreen(); if (myFrame.getWidth() == 0 || myFrame.getHeight() == 0 || locationOnScreen.x > 0 || locationOnScreen.y > 0) { handleFullScreenResize(myFrame); } } | enterFullScreen |
245,830 | void () { } | exitFullScreen |
245,831 | void (boolean create) { IdeFrame[] helpers = WindowManager.getInstance().getAllProjectFrames(); if (create) { TabsInfo info = getTabsInfo(helpers, myFrame); if (info == null) { return; } int index = ArrayUtil.indexOfIdentity(info.frames, myFrame); for (IdeFrameImpl frame : info.frames) { if (frame == myFrame || isTabsN... | updateTabBars |
245,832 | void (@NotNull IdeFrameImpl frame, @NotNull ProjectFrameHelper helper, IdeFrameImpl @NotNull [] tabFrames) { WindowTabsComponent tabs = new WindowTabsComponent(frame, helper.getProject(), helper.rootPane.createDisposable$intellij_platform_ide_impl()); JPanel parentComponent = getTabsContainer(frame); parentComponent.ad... | createTabBarsForFrame |
245,833 | void (@NotNull IdeFrameImpl frame, @NotNull IdeFrameImpl tab, int index) { Objects.requireNonNull(getTabsComponent(getTabsContainer(frame))).insertTabForFrame(tab, index); } | insertTabForFrame |
245,834 | void (@NotNull IdeFrameImpl frame, @Nullable IdeFrameImpl tab) { JPanel parentComponent = getTabsContainer(frame); WindowTabsComponent tabs = getTabsComponent(parentComponent); if (tabs == null) { return; // no tabs } if (tab == null || tabs.removeTabFromFrame(tab)) { parentComponent.remove(tabs); parentComponent.setVi... | removeFromFrame |
245,835 | boolean (IdeFrameImpl frame) { return getTabsComponent(getTabsContainer(frame)) == null; } | isTabsNotVisible |
245,836 | JPanel (@NotNull IdeFrameImpl frame) { return (JPanel)frame.getRootPane().getClientProperty(WINDOW_TABS_CONTAINER); } | getTabsContainer |
245,837 | void () { IdeFrame[] helpers = WindowManager.getInstance().getAllProjectFrames(); if (helpers.length == 0) { return; } for (IdeFrame helper : helpers) { removeFromFrame(((ProjectFrameHelper)helper).getFrame(), null); } TabsInfo info = Objects.requireNonNull(getTabsInfo(helpers, ((ProjectFrameHelper)helpers[0]).getFrame... | updateTabBarsAfterMerge |
245,838 | void (@NotNull IdeFrameImpl movedFrame, @Nullable IdeFrameImpl target, int index) { IdeFrame[] helpers = WindowManager.getInstance().getAllProjectFrames(); for (IdeFrame helper : helpers) { IdeFrameImpl frame = ((ProjectFrameHelper)helper).getFrame(); if (frame != movedFrame && frame != target) { removeFromFrame(frame,... | updateTabBarsAfterMove |
245,839 | boolean () { return myIsFullScreen; } | isFullScreen |
245,840 | void (@NotNull Window window) { myListener = new FullScreenListener() { @Override public void windowEnteringFullScreen(FullScreenEvent event) { myIsFullScreen = true; } @Override public void windowEnteredFullScreen(FullScreenEvent event) { myIsFullScreen = true; } @Override public void windowExitingFullScreen(FullScree... | addListener |
245,841 | void (FullScreenEvent event) { myIsFullScreen = true; } | windowEnteringFullScreen |
245,842 | void (FullScreenEvent event) { myIsFullScreen = true; } | windowEnteredFullScreen |
245,843 | void (FullScreenEvent event) { myIsFullScreen = false; } | windowExitingFullScreen |
245,844 | void (FullScreenEvent event) { myIsFullScreen = false; } | windowExitedFullScreen |
245,845 | void (@NotNull Window window) { if (window instanceof RootPaneContainer container && container.getRootPane() != null) { FullScreenUtilities.removeFullScreenListenerFrom(window, myListener); } } | removeListener |
245,846 | String (final FileChooserDescriptor descriptor) { final String title = descriptor.getTitle(); return title != null ? title : UIBundle.message("file.chooser.default.title"); } | getChooserTitle |
245,847 | JComponent (@NotNull JRootPane rootPane, @NotNull JComponent northComponent) { if (isVersion2()) { return MacWinTabsHandlerV2._wrapRootPaneNorthSide(rootPane, northComponent); } JPanel panel = new NonOpaquePanel(new BorderLayout()); JPanel filler = new OpaquePanel(); filler.setBorder(JBUI.Borders.customLineBottom(UIUti... | wrapRootPaneNorthSide |
245,848 | void (@NotNull IdeFrameImpl frame) { if (isVersion2()) { MacWinTabsHandlerV2._fastInit(frame); return; } if (JdkEx.setTabbingMode(frame, getWindowId(), () -> updateTabBars(null))) { Foundation.invoke("NSWindow", "setAllowsAutomaticWindowTabbing:", true); } } | fastInit |
245,849 | boolean () { return ExperimentalUI.isNewUI() && Registry.is("ide.mac.os.wintabs.version2", true); } | isVersion2 |
245,850 | boolean (@NotNull IdeFrameImpl frame, @NotNull CoroutineScope coroutineScope) { boolean allowed = isAllowedFrame(frame) && JdkEx.setTabbingMode(frame, getWindowId(), () -> updateTabBars(null)); if (allowed) { Foundation.invoke("NSWindow", "setAllowsAutomaticWindowTabbing:", true); executeOnCancelInEdt(coroutineScope, (... | initFrame |
245,851 | boolean (@Nullable JFrame frame) { return frame == null || frame instanceof IdeFrameImpl; } | isAllowedFrame |
245,852 | String () { return (isVersion2() ? "+" : "") + ApplicationNamesInfo.getInstance().getProductName() + (PluginManagerCore.isRunningFromSources() ? "-Snapshot" : "") + "-AwtWindow-WithTabs"; } | getWindowId |
245,853 | void () { // update tab logic only after call [NSWindow makeKeyAndOrderFront] and after add frame to window manager ApplicationManager.getApplication().invokeLater(() -> updateTabBars(myFrame)); } | setProject |
245,854 | void () { enterFullScreen(); } | enteringFullScreen |
245,855 | void () { if (!myFrameAllowed) { return; } updateTabBar(); } | enterFullScreen |
245,856 | void () { if (myFrameAllowed) { updateTabBar(); } } | exitFullScreen |
245,857 | void () { Foundation.executeOnMainThread(true, false, () -> { ID window = MacUtil.getWindowFromJavaWindow(myFrame); int visibleAndHeight = (int)Foundation.invoke_fpret(window, "getTabBarVisibleAndHeight"); ApplicationManager.getApplication() .invokeLater(() -> updateTabBar(myFrame, visibleAndHeight == -1 ? DEFAULT_WIN_... | updateTabBar |
245,858 | void (@Nullable JFrame newFrame) { if (!isAllowedFrame(newFrame) || !JdkEx.isTabbingModeAvailable()) { return; } IdeFrame[] frames = WindowManager.getInstance().getAllProjectFrames(); if (frames.length < 2) { if (frames.length == 1) { updateTabBar(frames[0], 0); if (newFrame == null) { ProjectFrameHelper helper = (Proj... | updateTabBars |
245,859 | void (@NotNull Object frameObject, int height) { JRootPane rootPane; if (frameObject instanceof JFrame) { rootPane = ((JFrame)frameObject).getRootPane(); } else if (frameObject instanceof ProjectFrameHelper frameHelper) { rootPane = frameHelper.getFrame().getRootPane(); } else { return; } if (rootPane == null) { return... | updateTabBar |
245,860 | void (@NotNull Window window) { try { Object cPlatformWindow = MacUtil.getPlatformWindow(window); if (cPlatformWindow != null) { Class<?> windowClass = cPlatformWindow.getClass(); Method deliverMoveResize = ReflectionUtil.getDeclaredMethod(windowClass, "doDeliverMoveResizeEvent"); if (deliverMoveResize != null) { try {... | handleFullScreenResize |
245,861 | int () { return Registry.intValue("ide.mac.bigsur.window.with.tabs.height", 28); } | DEFAULT_WIN_TAB_HEIGHT |
245,862 | void (@NotNull ID window) { ID tabGroup = Foundation.invoke(window, "tabGroup"); if (!ID.NIL.equals(Foundation.invoke(tabGroup, "observationInfo"))) { return; } if (myObserverDelegate == null) { myObserverCallback = new Callback() { @SuppressWarnings("unused") public void callback(ID self, Pointer selector, ID keyPath,... | addTabObserver |
245,863 | void (ID self, Pointer selector, ID keyPath, ID ofObject, ID change, Pointer context) { ApplicationManager.getApplication().invokeLater(() -> updateTabBars(null)); } | callback |
245,864 | void (@NotNull JFrame frame, boolean next) { if (JdkEx.isTabbingModeAvailable()) { Foundation.executeOnMainThread(true, false, () -> { Foundation.invoke(MacUtil.getWindowFromJavaWindow(frame), next ? "selectNextTab:" : "selectPreviousTab:", ID.NIL); }); } } | switchFrameIfPossible |
245,865 | void () { if (!myFrameAllowed) { return; } IdeFrame[] frames = WindowManager.getInstance().getAllProjectFrames(); int length = frames.length; if (length < 2) { return; } ID[] windows = new ID[length]; for (int i = 0; i < length; i++) { IdeFrameImpl frame = ((ProjectFrameHelper)frames[i]).getFrame(); JRootPane pane = fr... | appClosing |
245,866 | void (@NotNull JComponent component, @Nullable AWTEventListener listener) { try { new MacGestureSupportForEditor(component, listener); } catch (Throwable t) { Logger.getInstance(MacGestureSupportInstaller.class).warn("macOS gesture support failed", t); } } | installOnComponent |
245,867 | UiDecoration () { //noinspection UseDPIAwareInsets return new UiDecoration(JBFont.medium(), new Insets(-1, getDropInfo() == null ? 0 : -1, -1, -1)); } | getDecoration |
245,868 | void () { Disposer.dispose(myParentDisposable); } | selfDispose |
245,869 | SingleRowLayout () { return new WindowTabsLayout(this); } | createSingleRowLayout |
245,870 | Dimension () { return new Dimension(super.getPreferredSize().width, JBUI.scale(TAB_HEIGHT)); } | getPreferredSize |
245,871 | boolean (@NotNull MouseEvent e) { return e.getClickCount() == 1 && !e.isPopupTrigger() && e.getButton() == MouseEvent.BUTTON1 && !e.isControlDown() && !e.isAltDown() && !e.isMetaDown(); } | _isSelectionClick |
245,872 | TabLabel (@NotNull TabInfo info) { return new TabLabel(this, info) { { for (MouseListener listener : getMouseListeners()) { removeMouseListener(listener); } TabLabel label = this; addMouseListener(new MouseAdapter() { @Override public void mousePressed(MouseEvent e) { if (!UIUtil.isCloseClick(e, MouseEvent.MOUSE_PRESSE... | createTabLabel |
245,873 | void (MouseEvent e) { if (!UIUtil.isCloseClick(e, MouseEvent.MOUSE_PRESSED) && !_isSelectionClick(e)) { handlePopup(e); } } | mousePressed |
245,874 | void (MouseEvent e) { handlePopup(e); } | mouseReleased |
245,875 | void (MouseEvent e) { if (_isSelectionClick(e)) { Component c = SwingUtilities.getDeepestComponentAt(e.getComponent(), e.getX(), e.getY()); if (c instanceof InplaceButton) return; myTabs.select(info, true); JBPopup container = PopupUtil.getPopupContainerFor(label); if (container != null && ClientProperty.isTrue(contain... | mouseClicked |
245,876 | void (MouseEvent e) { setHovered(true); } | mouseEntered |
245,877 | void (MouseEvent e) { setHovered(false); } | mouseExited |
245,878 | Dimension () { return new Dimension(super.getPreferredSize().width, JBUI.scale(TAB_HEIGHT)); } | getPreferredSize |
245,879 | void (ActionGroup group) { super.setTabActions(group); if (myActionPanel != null) { Container parent = myActionPanel.getParent(); parent.remove(myActionPanel); parent.add(new Wrapper(myActionPanel) { @Override public Dimension getPreferredSize() { return myActionPanel.getPreferredSize(); } }, BorderLayout.WEST); myActi... | setTabActions |
245,880 | Dimension () { return myActionPanel.getPreferredSize(); } | getPreferredSize |
245,881 | void (boolean value) { super.setHovered(value); myActionPanel.setVisible(!showCloseActionOnHover() || value || getInfo() == myTabs.getPopupInfo()); } | setHovered |
245,882 | void (MouseEvent e) { super.handlePopup(e); JPopupMenu popup = myTabs.getActivePopup(); if (popup != null) { popup.addPopupMenuListener(new PopupMenuListenerAdapter() { @Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { handle(); } @Override public void popupMenuCanceled(PopupMenuEvent e) { handle()... | handlePopup |
245,883 | void (PopupMenuEvent e) { handle(); } | popupMenuWillBecomeInvisible |
245,884 | void (PopupMenuEvent e) { handle(); } | popupMenuCanceled |
245,885 | void () { popup.removePopupMenuListener(this); myActionPanel.setVisible(!showCloseActionOnHover() || isHovered()); } | handle |
245,886 | boolean () { return false; } | isTabActionsOnTheRight |
245,887 | boolean () { return false; } | shouldPaintFadeout |
245,888 | boolean () { return Registry.is("ide.mac.os.wintabs.show.closeaction.on.hover", true); } | showCloseActionOnHover |
245,889 | TabPainterAdapter () { return new TabPainterAdapter() { private final JBTabPainter myTabPainter = new JBDefaultTabPainter(new DefaultTabTheme() { @Override public int getTopBorderThickness() { return 0; } @Override public @Nullable Color getInactiveColoredTabBackground() { return null; } }); @Override public @NotNull J... | createTabPainterAdapter |
245,890 | int () { return 0; } | getTopBorderThickness |
245,891 | JBTabPainter () { return myTabPainter; } | getTabPainter |
245,892 | void (@NotNull TabLabel label, @NotNull Graphics g, @NotNull JBTabsImpl tabs) { Rectangle rect = new Rectangle(0, 0, label.getWidth(), label.getHeight()); TabInfo info = label.getInfo(); Graphics2D g2d = (Graphics2D)g; int index = tabs.getIndexOf(info); int lastIndex = tabs.getTabCount() - 1; int border = JBUI.scale(1)... | paintBackground |
245,893 | boolean (@NotNull WindowTabsComponent anotherComponent) { if (this == anotherComponent) { return true; } int count = getTabCount(); if (count != anotherComponent.getTabCount()) { return false; } Set<Object> tabs = new HashSet<>(); Set<Object> anotherTabs = new HashSet<>(); for (int i = 0; i < count; i++) { tabs.add(get... | isSameGroup |
245,894 | void (IdeFrameImpl @NotNull [] tabFrames) { for (IdeFrameImpl tabFrame : tabFrames) { createTabItem(tabFrame, -1, tabFrame == myNativeWindow); } recalculateIndexes(); setSelectionChangeHandler((info, requestFocus, doChangeSelection) -> { IdeFrameImpl tabFrame = (IdeFrameImpl)info.getObject(); if (tabFrame == myNativeWi... | createTabsForFrame |
245,895 | void (@NotNull IdeFrameImpl tab, int index) { createTabItem(tab, index, false); recalculateIndexes(); } | insertTabForFrame |
245,896 | boolean (@NotNull IdeFrameImpl tab) { int count = getTabCount(); boolean removed = false; for (int i = 0; i < count; i++) { TabInfo info = getTabAt(i); if (info.getObject() == tab) { removeTitleListener(info); removeTab(info); recalculateIndexes(); removed = true; count--; break; } } return removed && count == 1; } | removeTabFromFrame |
245,897 | void (@NotNull IdeFrameImpl tabFrame, int index, boolean selection) { TabInfo info = new TabInfo(new JLabel()); info.setObject(tabFrame).setText(tabFrame.getTitle()).setTooltipText(tabFrame.getTitle()); //NON-NLS info.setTabLabelActions(createTabActions(tabFrame), ActionPlaces.UNKNOWN); info.setDefaultForeground(JBUI.C... | createTabItem |
245,898 | void (WindowEvent e) { repaint(); } | windowActivated |
245,899 | void (WindowEvent e) { repaint(); } | windowDeactivated |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.