Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
290,500 | void (@NotNull AnActionEvent e, boolean state) { myOption.select(); } | setSelected |
290,501 | void (@NotNull AnActionEvent e) { super.update(e); e.getPresentation().setEnabled(myOption.isEnabled()); e.getPresentation().setText(myOption.getDisplayName()); } | update |
290,502 | boolean () { return myOptions.isHidden(); } | isSelected |
290,503 | void () { myOptions.onHide(); } | select |
290,504 | boolean () { return myOptions.isHideOptionVisible(); } | isEnabled |
290,505 | String () { return IdeBundle.message("run.layout.do.not.show.view.option.message"); } | getDisplayName |
290,506 | boolean (ViewContext context, Content[] selectedContents, String place) { for (Content content : context.getContentManager().getContents()) { if (content.isPinned()) return super.isEnabled(context, selectedContents, place); } return false; } | isEnabled |
290,507 | boolean (@NotNull Content c, Content @NotNull [] selectedContents) { return !c.isPinned(); } | isAccepted |
290,508 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
290,509 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible( !ActionPlaces.DEBUGGER_TOOLBAR.equals(e.getPlace()) && e.getData(RunnerContentUi.KEY) != null ); super.update(e); } | update |
290,510 | boolean (@NotNull AnActionEvent e) { var runnerUI = e.getData(RunnerContentUi.KEY); if (runnerUI == null) { return false; } return !runnerUI.getLayoutSettings().isTabLabelsHidden(); } | isSelected |
290,511 | void (@NotNull AnActionEvent e, boolean state) { var runnerUI = Objects.requireNonNull(e.getData(RunnerContentUi.KEY)); runnerUI.getLayoutSettings().setTabLabelsHidden(!state); runnerUI.updateTabsUI(true); } | setSelected |
290,512 | RunnerLayoutSettings () { return ApplicationManager.getApplication().getService(RunnerLayoutSettings.class); } | getInstance |
290,513 | RunnerLayout (@NotNull String id) { if (Strings.areSameInstance(id, NOT_PERSISTENT_ID)) return new RunnerLayout(); RunnerLayout layout = myRunnerId2Settings.get(id); if (layout == null) { layout = new RunnerLayout(); myRunnerId2Settings.put(id, layout); } return layout; } | getLayout |
290,514 | Element () { final Element runners = new Element("runners"); for (String eachID : myRunnerId2Settings.keySet()) { final RunnerLayout layout = myRunnerId2Settings.get(eachID); final Element runnerElement = new Element("runner"); runnerElement.setAttribute("id", eachID); layout.write(runnerElement); runners.addContent(ru... | getState |
290,515 | void (final @NotNull Element state) { final List runners = state.getChildren("runner"); for (Object each : runners) { Element eachRunnerElement = (Element)each; final String eachID = eachRunnerElement.getAttributeValue("id"); final RunnerLayout eachLayout = new RunnerLayout(); eachLayout.read(eachRunnerElement); myRunn... | loadState |
290,516 | void (ActionGroup group, String place) { final ActionToolbar tb = myActionManager.createActionToolbar(place, group, false); tb.setTargetComponent(myComponent); myToolbar.setContent(tb.getComponent()); myLeftToolbarActions = group; myComponent.revalidate(); myComponent.repaint(); } | setLeftToolbar |
290,517 | void () { if (myTabs != null) return; myTabs = new JBRunnerTabs(myProject, this); myTabs.getComponent().setOpaque(false); myTabs.setDataProvider(dataId -> { if (ViewContext.CONTENT_KEY.is(dataId)) { TabInfo info = myTabs.getTargetInfo(); if (info != null) { return getGridFor(info).getData(dataId); } } else if (ViewCont... | initUi |
290,518 | void (TabInfo oldSelection, TabInfo newSelection) { if (oldSelection != null && !isStateBeingRestored()) { final GridImpl grid = getGridFor(oldSelection); if (grid != null && getTabFor(grid) != null) { grid.saveUiState(); } } } | beforeSelectionChanged |
290,519 | void () { saveUiState(); } | tabsMoved |
290,520 | void (final TabInfo oldSelection, final TabInfo newSelection) { if (!myTabs.getComponent().isShowing()) return; if (newSelection != null) { newSelection.stopAlerting(); getGridFor(newSelection).processAddToUi(false); } if (oldSelection != null) { getGridFor(oldSelection).processRemoveFromUi(); } } | selectionChanged |
290,521 | void (@NotNull MouseEvent e) { if (UIUtil.isCloseClick(e)) { final TabInfo tabInfo = myTabs.findInfo(e); final GridImpl grid = tabInfo == null ? null : getGridFor(tabInfo); final Content[] contents = grid != null ? CONTENT_KEY.getData(grid) : null; if (contents == null) return; // see GridCellImpl.closeOrMinimize as we... | mousePressed |
290,522 | void (MouseEvent e) { InternalDecoratorImpl topLevelDecorator = InternalDecoratorImpl.Companion.findTopLevelDecorator(myComponent); if (topLevelDecorator != null) { topLevelDecorator.activate(ToolWindowEventSource.ToolWindowHeader); } myPressPoint = e.getPoint(); } | mousePressed |
290,523 | void (MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() == 2) { InternalDecoratorImpl topLevelDecorator = InternalDecoratorImpl.Companion.findTopLevelDecorator(myComponent); if (topLevelDecorator != null && !topLevelDecorator.isHeaderVisible()) { String id = topLevelDecorator.getToolWindowId(... | mouseClicked |
290,524 | void (MouseEvent e) { InternalDecoratorImpl decorator = InternalDecoratorImpl.Companion.findTopLevelDecorator(myComponent); if (decorator == null || decorator.isHeaderVisible()) return; ToolWindow window = ToolWindowManager.getInstance(myProject).getToolWindow(decorator.getToolWindowId()); ToolWindowAnchor anchor = win... | mouseDragged |
290,525 | void (MouseEvent e) { myPressPoint = null; } | mouseReleased |
290,526 | void (MouseEvent e) { InternalDecoratorImpl decorator = InternalDecoratorImpl.Companion.findTopLevelDecorator(myComponent); if (decorator == null || decorator.isHeaderVisible()) { e.getComponent().setCursor(Cursor.getDefaultCursor()); return; } e.getComponent().setCursor(Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSO... | mouseEntered |
290,527 | void (MouseEvent e) { e.getComponent().setCursor(Cursor.getDefaultCursor()); } | mouseExited |
290,528 | void () { initUi(); myTabs.setPopupGroup(getCellPopupGroup(TAB_POPUP_PLACE), TAB_POPUP_PLACE, true); getGrids().forEach(GridImpl::rebuildTabPopup); } | rebuildTabPopup |
290,529 | ActionGroup (final String place) { final ActionGroup original = myTabPopupActions != null ? myTabPopupActions : (ActionGroup)myActionManager.getAction(VIEW_POPUP); final ActionGroup focusPlaceholder = (ActionGroup)myActionManager.getAction("Runner.Focus"); DefaultActionGroup group = new DefaultActionGroup(VIEW_POPUP, o... | getCellPopupGroup |
290,530 | boolean () { return myOriginal == null; } | isOriginal |
290,531 | int () { return myWindow; } | getWindow |
290,532 | JBTabs () { return myTabs; } | getTabs |
290,533 | void (final @NotNull PropertyChangeEvent evt) { Content content = (Content)evt.getSource(); final GridImpl grid = getGridFor(content, false); if (grid == null) return; final GridCellImpl cell = grid.findCell(content); if (cell == null) return; final String property = evt.getPropertyName(); if (Content.PROP_ALERT.equals... | propertyChange |
290,534 | ActionCallback (int window, GridCell cell) { if (myOriginal != null) { return myOriginal.detachTo(window, cell); } RunnerContentUi target = null; if (window > 0) { for (RunnerContentUi child : myChildren) { if (child.myWindow == window) { target = child; break; } } } final GridCellImpl gridCell = (GridCellImpl)cell; fi... | detachTo |
290,535 | void (Content @NotNull [] contents) { //int i = 0; for (Content content : contents) { content.putUserData(RunnerLayout.DEFAULT_INDEX, getStateFor(content).getTab().getDefaultIndex()); //content.putUserData(CONTENT_NUMBER, i++); } } | storeDefaultIndices |
290,536 | RelativeRectangle () { return new RelativeRectangle(myTabs.getComponent()); } | getAcceptArea |
290,537 | ContentResponse (@NotNull DockableContent content, RelativePoint point) { if (!(content instanceof DockableGrid)) { return ContentResponse.DENY; } final RunnerContentUi ui = ((DockableGrid)content).getOriginalRunnerUi(); return ui.getProject() == myProject && ui.mySessionName.equals(mySessionName) ? ContentResponse.ACC... | getContentResponse |
290,538 | JComponent () { initUi(); return myComponent; } | getComponent |
290,539 | JComponent () { initUi(); return myManager.getComponent(); } | getContainerComponent |
290,540 | void (@NotNull DockableContent dockable, RelativePoint dropTarget) { final DockableGrid dockableGrid = (DockableGrid)dockable; final RunnerContentUi prev = dockableGrid.getRunnerUi(); saveUiState(); final List<Content> contents = dockableGrid.getContents(); final boolean wasRestoring = myOriginal != null && myOriginal.... | add |
290,541 | void () { final Content[] contents = myManager.getContents(); if (myOriginal != null) { for (Content content : contents) { getStateFor(content).setWindow(0); myOriginal.myManager.addContent(content); GridCell cell = myOriginal.findCellFor(content); if (cell != null) { myOriginal.restore(content); cell.minimize(content)... | closeAll |
290,542 | void (@NotNull Listener listener, Disposable parent) { myDockingListeners.add(listener); Disposer.register(parent, () -> myDockingListeners.remove(listener)); } | addListener |
290,543 | boolean () { return myTabs.isEmptyVisible() || myDisposing; } | isEmpty |
290,544 | Image (@NotNull DockableContent dockable, RelativePoint dropTarget) { JBTabs current = getTabsAt(dockable, dropTarget); if (myCurrentOver != null && myCurrentOver != current) { resetDropOver(dockable); } if (myCurrentOver == null && current != null) { myCurrentOver = current; Presentation presentation = dockable.getPre... | processDropOver |
290,545 | void (JBTabs tabs) { if (myOriginal != null) { myOriginal.toggleContentPopup(tabs); return; } List<Content> contents = getPopupContents(); final SelectContentStep step = new SelectContentStep(contents); final Content selectedContent = myManager.getSelectedContent(); if (selectedContent != null) { step.setDefaultOptionI... | toggleContentPopup |
290,546 | List<Content> () { if (myOriginal != null) return myOriginal.getPopupContents(); List<Content> contents = new ArrayList<>(Arrays.asList(myManager.getContents())); myChildren.stream() .flatMap(child -> Arrays.stream(child.myManager.getContents())) .forEachOrdered(contents::add); RunContentManager contentManager = RunCon... | getPopupContents |
290,547 | PlaceInGrid (Point point, Dimension size) { // 1/3 (left) | (center/bottom) | 1/3 (right) if (point.x < size.width / 3) return PlaceInGrid.left; if (point.x > size.width * 2 / 3) return PlaceInGrid.right; // 3/4 (center with tab titles) | 1/4 (bottom) if (point.y > size.height * 3 / 4) return PlaceInGrid.bottom; return... | calcPlaceInGrid |
290,548 | void (@NotNull DockableContent content) { if (myCurrentOver != null) { myCurrentOver.resetDropOver(myCurrentOverInfo); myCurrentOver = null; myCurrentOverInfo = null; myCurrentOverImg = null; Disposer.dispose(myGlassPaneListenersDisposable); myGlassPaneListenersDisposable = Disposer.newDisposable(); myCurrentPainter = ... | resetDropOver |
290,549 | boolean () { return myOriginal != null; } | isDisposeWhenEmpty |
290,550 | void (final @NotNull ContentManager manager) { assert myManager == null; myManager = manager; myManager.addContentManagerListener(new ContentManagerListener() { @Override public void contentAdded(final @NotNull ContentManagerEvent event) { initUi(); if (event.getContent().getUserData(LIGHTWEIGHT_CONTENT_MARKER) == Bool... | setManager |
290,551 | void (final @NotNull ContentManagerEvent event) { initUi(); if (event.getContent().getUserData(LIGHTWEIGHT_CONTENT_MARKER) == Boolean.TRUE) { myLayoutSettings.setLightWeight(event.getContent()); Disposer.register(event.getContent(), () -> myLayoutSettings.clearStateFor(event.getContent())); } GridImpl grid = getGridFor... | contentAdded |
290,552 | void (final @NotNull ContentManagerEvent event) { final Content content = event.getContent(); content.removePropertyChangeListener(RunnerContentUi.this); GridImpl grid = (GridImpl)findGridFor(content); if (grid != null) { grid.remove(content); if (grid.isEmpty()) { grid.processRemoveFromUi(); } removeGridIfNeeded(grid)... | contentRemoved |
290,553 | void (final @NotNull ContentManagerEvent event) { if (isStateBeingRestored()) return; if (event.getOperation() == ContentManagerEvent.ContentOperation.add) { select(event.getContent(), false); } } | selectionChanged |
290,554 | void (GridImpl grid) { if (grid.isEmpty()) { myTabs.removeTab(myTabs.findInfo(grid)); myMinimizedButtonsPlaceholder.remove(grid); myCommonActionsPlaceholder.remove(grid); Disposer.dispose(grid); } } | removeGridIfNeeded |
290,555 | Dimension () { Dimension size = super.getPreferredSize(); if (size.height > 0) { size.height = JBRunnerTabs.getTabLabelPreferredHeight() - ((JBRunnerTabs)myTabs).getBorderThickness(); } return size; } | getPreferredSize |
290,556 | void (int index) { if (myOriginal != null) { myOriginal.moveFollowingTabs(index); return; } moveFollowingTabs(index, myTabs); for (RunnerContentUi child : myChildren) { moveFollowingTabs(index, child.myTabs); } } | moveFollowingTabs |
290,557 | ContentManager (Content content) { if (hasContent(myManager, content)) { return myManager; } for (RunnerContentUi child : myChildren) { if (hasContent(child.myManager, content)) { return child.myManager; } } return myManager; } | getContentManager |
290,558 | boolean (ContentManager manager, Content content) { return ArrayUtil.contains(content, manager.getContents()); } | hasContent |
290,559 | void (int index, final JBTabs tabs) { for (TabInfo info : tabs.getTabs()) { TabImpl tab = getTabFor(info); if (tab != null) { int tabIndex = tab.getIndex(); if (tabIndex >= index) { tab.setIndex(tabIndex + 1); } } } } | moveFollowingTabs |
290,560 | int (RunnerContentUi ui) { int offset = myTabs.getTabCount(); for (RunnerContentUi child : myChildren) { if (child == ui) break; offset += child.myTabs.getTabCount(); } return offset; } | getTabOffsetFor |
290,561 | boolean () { boolean hasToolbarContent = rebuildCommonActions(); hasToolbarContent |= rebuildMinimizedActions(); return hasToolbarContent; } | rebuildToolbar |
290,562 | boolean () { boolean hasToolbarContent = false; for (Map.Entry<GridImpl, TopToolbarWrappers> entry : myCommonActionsPlaceholder.entrySet()) { Wrapper leftPlaceHolder = entry.getValue().left; Wrapper middlePlaceHolder = entry.getValue().middle; Wrapper rightPlaceHolder = entry.getValue().right; TopToolbarContextActions ... | rebuildCommonActions |
290,563 | void (@NotNull Wrapper placeHolder, @NotNull String place, @NotNull DefaultActionGroup group) { ActionToolbar tb = myActionManager.createActionToolbar(place, group, true); tb.setReservePlaceAutoPopupIcon(false); tb.setTargetComponent(myComponent); tb.getComponent().setBorder(null); tb.getComponent().setOpaque(false); p... | setActions |
290,564 | boolean () { for (Map.Entry<GridImpl, Wrapper> entry : myMinimizedButtonsPlaceholder.entrySet()) { Wrapper eachPlaceholder = entry.getValue(); ActionToolbar tb = myActionManager.createActionToolbar(ActionPlaces.RUNNER_LAYOUT_BUTTON_TOOLBAR, myViewActions, true); tb.setSecondaryActionsIcon(AllIcons.Debugger.RestoreLayou... | rebuildMinimizedActions |
290,565 | void (final boolean validateNow) { boolean hasToolbarContent = rebuildToolbar(); Set<String> usedNames = new HashSet<>(); List<TabInfo> tabs = myTabs.getTabs(); for (TabInfo each : tabs) { hasToolbarContent |= updateTabUI(each, usedNames); } int tabsCount = tabs.size() + myChildren.stream().mapToInt(child -> child.myTa... | updateTabsUI |
290,566 | boolean (TabInfo tab, Set<? super String> usedNames) { TabImpl t = getTabFor(tab); if (t == null) { return false; } Icon icon = t.getIcon(); GridImpl grid = getGridFor(tab); boolean hasToolbarContent = grid.updateGridUI(); List<Content> contents = grid.getContents(); String title = contents.size() > 1 ? t.getDisplayNam... | updateTabUI |
290,567 | ActionCallback () { if (isStateBeingRestored()) return ActionCallback.REJECTED; try { setStateIsBeingRestored(true, this); List<TabInfo> tabs = new ArrayList<>(myTabs.getTabs()); final ActionCallback result = new ActionCallback(tabs.size()); for (TabInfo each : tabs) { getGridFor(each).restoreLastUiState().notifyWhenDo... | restoreLastUiState |
290,568 | void () { if (isStateBeingRestored()) return; if (myOriginal != null) { myOriginal.saveUiState(); return; } if (!myUiLastStateWasRestored) return; int offset = updateTabsIndices(myTabs, 0); for (RunnerContentUi child : myChildren) { offset = updateTabsIndices(child.myTabs, offset); } doSaveUiState(); } | saveUiState |
290,569 | int (final JBTabs tabs, int offset) { for (TabInfo each : tabs.getTabs()) { final int index = tabs.getIndexOf(each); final TabImpl tab = getTabFor(each); if (tab != null) tab.setIndex(index >= 0 ? index + offset : index); } return offset + tabs.getTabCount(); } | updateTabsIndices |
290,570 | void () { if (isStateBeingRestored()) return; for (TabInfo each : myTabs.getTabs()) { GridImpl eachGrid = getGridFor(each); eachGrid.saveUiState(); } for (RunnerContentUi child : myChildren) { child.doSaveUiState(); } } | doSaveUiState |
290,571 | void () { final Window window = SwingUtilities.getWindowAncestor(myComponent); if (window instanceof IdeFrame.Child) { ((IdeFrame.Child)window).setFrameTitle(mySessionName); } } | showNotify |
290,572 | GridImpl (TabInfo tab) { return (GridImpl)tab.getComponent(); } | getGridFor |
290,573 | Stream<GridImpl> () { return myTabs.getTabs().stream().map(RunnerContentUi::getGridFor); } | getGrids |
290,574 | boolean () { return false; } | isSingleSelection |
290,575 | boolean () { return false; } | isToSelectAddedContent |
290,576 | boolean () { return true; } | canBeEmptySelection |
290,577 | void () { if (myOriginal != null) { myDisposing = true; fireContentClosed(null); } } | beforeDispose |
290,578 | boolean (@NotNull Content content, boolean implicit) { if (implicit) { GridImpl grid = getGridFor(content, false); if (grid != null) { return !grid.isMinimized(content); } } return true; } | canChangeSelectionTo |
290,579 | String () { return UIBundle.message("tabbed.pane.close.tab.action.name"); } | getCloseActionName |
290,580 | String () { return UIBundle.message("tabbed.pane.close.all.tabs.but.this.action.name"); } | getCloseAllButThisActionName |
290,581 | String () { return ExecutionBundle.message("select.previous.tab"); } | getPreviousContentActionName |
290,582 | String () { return ExecutionBundle.message("select.next.tab"); } | getNextContentActionName |
290,583 | void () { if (myOriginal != null) { myOriginal.myChildren.remove(this); } myMinimizedButtonsPlaceholder.clear(); myCommonActionsPlaceholder.clear(); myContextActions.clear(); myOriginal = null; myTopLeftActions = null; myTopRightActions = null; myAdditionalFocusActions = null; myLeftToolbarActions = null; } | dispose |
290,584 | void () { final RunnerContentUi[] children = myChildren.toArray(new RunnerContentUi[0]); final LinkedHashSet<Content> contents = new LinkedHashSet<>(); Collections.addAll(contents, myManager.getContents()); for (RunnerContentUi child : children) { Collections.addAll(contents, child.myManager.getContents()); } for (AnAc... | restoreLayout |
290,585 | boolean () { return !myRestoreStateRequestors.isEmpty(); } | isStateBeingRestored |
290,586 | void (final boolean restoredNow, final Object requestor) { if (restoredNow) { myRestoreStateRequestors.add(requestor); } else { myRestoreStateRequestors.remove(requestor); } } | setStateIsBeingRestored |
290,587 | void () { Collection<TopToolbarWrappers> values = myCommonActionsPlaceholder.values(); Stream<Wrapper> leftWrappers = values.stream().map(it -> it.left); Stream<Wrapper> rightWrappers = values.stream().map(it -> it.right); StreamEx.of(myToolbar).append(leftWrappers).append(rightWrappers) .map(Wrapper::getTargetComponen... | updateActionsImmediately |
290,588 | void () { List<AnAction> specialActions = new ArrayList<>(); for (AnAction action : myViewActions.getChildren(null)) { if (!(action instanceof ViewLayoutModificationAction)) specialActions.add(action); } if (myMinimizeActionEnabled) { if (specialActions.isEmpty()) { var separateWatchesInVariables = ActionManager.getIns... | updateRestoreLayoutActionVisibility |
290,589 | boolean () { return myMinimizeActionEnabled && myOriginal == null; } | isMinimizeActionEnabled |
290,590 | boolean () { return myMoveToGridActionEnabled; } | isMoveToGridActionEnabled |
290,591 | void (String contentId, final LayoutAttractionPolicy policy) { myAttractions.put(Pair.create(contentId, null), policy); } | setPolicy |
290,592 | LayoutAttractionPolicy (@Nullable String contentId, @Nullable String condition, @NotNull Map<Pair<String, String>, LayoutAttractionPolicy> map, LayoutAttractionPolicy defaultPolicy) { LayoutAttractionPolicy policy = map.putIfAbsent(Pair.create(contentId, condition), defaultPolicy); return policy != null ? policy : defa... | getOrCreatePolicyFor |
290,593 | boolean () { return myToDisposeRemovedContent; } | isToDisposeRemovedContent |
290,594 | boolean () { return myBoundingBox != null; } | needsRepaint |
290,595 | void (Component component, Graphics2D g) { if (myBoundingBox == null) return; GraphicsUtil.setupAAPainting(g); g.setColor(JBUI.CurrentTheme.DragAndDrop.Area.BACKGROUND); g.fill(myBoundingBox); } | executePaint |
290,596 | void (RunnerContentUi ui, DockableContent dockable, RelativePoint dropTarget) { myBoundingBox = null; setNeedsRepaint(true); if (!(dockable instanceof DockableGrid)) return; JComponent component = ui.myComponent; Point point = dropTarget != null ? dropTarget.getPoint(component) : null; // do not paint anything if addin... | processDropOver |
290,597 | void (Graphics g) { super.paintComponent(g); if (!UIExperiment.isNewDebuggerUIEnabled()) return; InternalDecoratorImpl decorator = ComponentUtil.getParentOfType(InternalDecoratorImpl.class, myComponent); if (decorator != null && myTabs.getTabCount() > 0 && !decorator.isHeaderVisible()) { UIUtil.drawHeader(g, 0, getWidt... | paintComponent |
290,598 | String () { return RunnerContentUi.this.getName(); } | getName |
290,599 | List<AnAction> (boolean originalProvider) { return RunnerContentUi.this.getActions(originalProvider); } | getActions |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.