Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
246,200 | void () { if (nativeIsInitialized) { return; } initializeNative(); nativeIsInitialized = true; } | ensureNativeIsInitialized |
246,201 | void (@NotNull ActionGroup actionGroup) { appendActionsFromGroup(actionGroup); if (myListModel.isEmpty()) { myListModel.add(new PopupFactoryImpl.ActionItem( Utils.EMPTY_MENU_FILLER, Objects.requireNonNull(Utils.EMPTY_MENU_FILLER.getTemplateText()))); } } | buildGroup |
246,202 | void (@NotNull List<? extends AnAction> actions) { for (AnAction action : actions) { if (action instanceof Separator) { continue; } Presentation presentation = presentationFactory.getPresentation(action); Pair<Icon, Icon> icons = calcRawIcons(action, presentation, true); Icon icon = icons.first == null ? icons.second :... | calcMaxIconSize |
246,203 | void (@NotNull ActionGroup actionGroup) { boolean multiChoicePopup = Utils.isMultiChoiceGroup(actionGroup); List<AnAction> newVisibleActions = Utils.expandActionGroup( actionGroup, presentationFactory, myDataContext, myActionPlace); List<AnAction> filtered = myShowDisabled ? newVisibleActions : ContainerUtil.filter( ne... | appendActionsFromGroup |
246,204 | void (@NotNull AnAction action, @NotNull Presentation presentation) { Character mnemonic = null; if (myShowNumbers) { if (myCurrentNumber < 9) { mnemonic = Character.forDigit(myCurrentNumber + 1, 10); } else if (myCurrentNumber == 9) { mnemonic = '0'; } else if (myUseAlphaAsNumbers) { mnemonic = (char)('A' + myCurrentN... | appendAction |
246,205 | Dimension () { final Dimension size = super.getPreferredSize(); if (useDefaultPreferredSize) { if (size.width > 400 || size.height > 200) { size.width = 400; size.height = 200; } } return size; } | getPreferredSize |
246,206 | IdeFrame (JComponent owner) { final Window frame = SwingUtilities.getWindowAncestor(owner); if (frame instanceof IdeFrame) { return (IdeFrame)frame; } return null; } | findFrame |
246,207 | JBPopup () { return null; } | getPopup |
246,208 | BalloonBuilder (boolean hideOnAction) { myHideOnAction = hideOnAction; return this; } | setHideOnAction |
246,209 | BalloonBuilder (boolean dialogMode) { myDialogMode = dialogMode; return this; } | setDialogMode |
246,210 | BalloonBuilder (final @NotNull Color color) { myBorder = color; return this; } | setBorderColor |
246,211 | BalloonBuilder (@Nullable Insets insets) { myBorderInsets = insets; return this; } | setBorderInsets |
246,212 | BalloonBuilder (final @NotNull Color color) { myFill = color; return this; } | setFillColor |
246,213 | BalloonBuilder (final boolean hide) { myHideOnMouseOutside = hide; return this; } | setHideOnClickOutside |
246,214 | BalloonBuilder (final boolean hide) { myHideOnKeyOutside = hide; return this; } | setHideOnKeyOutside |
246,215 | BalloonBuilder (final boolean show) { myShowCallout = show; return this; } | setShowCallout |
246,216 | BalloonBuilder (long fadeoutTime) { myFadeoutTime = fadeoutTime; return this; } | setFadeoutTime |
246,217 | BalloonBuilder (boolean block) { myBlockClicks = block; return this; } | setBlockClicksThroughBalloon |
246,218 | BalloonBuilder (boolean requestFocus) { myRequestFocus = requestFocus; return this; } | setRequestFocus |
246,219 | BalloonBuilder (boolean hideOnCloseClick) { myHideOnCloseClick = hideOnCloseClick; return this; } | setHideOnCloseClick |
246,220 | BalloonBuilder (int time) { myAnimationCycle = time; return this; } | setAnimationCycle |
246,221 | BalloonBuilder (boolean hide) { myHideOnFrameResize = hide; return this; } | setHideOnFrameResize |
246,222 | BalloonBuilder (boolean hide) { myHideOnLinkClick = hide; return this; } | setHideOnLinkClick |
246,223 | BalloonBuilder (int positionChangeXShift) { myPositionChangeXShift = positionChangeXShift; return this; } | setPositionChangeXShift |
246,224 | BalloonBuilder (int positionChangeYShift) { myPositionChangeYShift = positionChangeYShift; return this; } | setPositionChangeYShift |
246,225 | BalloonBuilder (boolean enabled) { myCloseButtonEnabled = enabled; return this; } | setCloseButtonEnabled |
246,226 | BalloonBuilder (ActionListener listener, boolean closeOnClick) { myClickHandler = listener; myCloseOnClick = closeOnClick; return this; } | setClickHandler |
246,227 | BalloonBuilder (int length) { myCalloutShift = length; return this; } | setCalloutShift |
246,228 | BalloonBuilder (@Nullable @NlsContexts.PopupTitle String title) { myTitle = title; return this; } | setTitle |
246,229 | BalloonBuilder (Insets insets) { myContentInsets = insets; return this; } | setContentInsets |
246,230 | BalloonBuilder (boolean shadow) { myShadow = shadow; return this; } | setShadow |
246,231 | BalloonBuilder (boolean smallVariant) { mySmallVariant = smallVariant; return this; } | setSmallVariant |
246,232 | BalloonBuilder (Balloon.Layer layer) { myLayer = layer; return this; } | setLayer |
246,233 | BalloonBuilder (@NotNull Disposable anchor) { myAnchor = anchor; return this; } | setDisposable |
246,234 | BalloonBuilder (Dimension size) { myPointerSize = size; return this; } | setPointerSize |
246,235 | BalloonBuilder (int distance) { myCornerToPointerDistance = distance; return this; } | setCornerToPointerDistance |
246,236 | BalloonBuilder (int radius) { myCornerRadius = radius; return this; } | setCornerRadius |
246,237 | BalloonBuilder (boolean pointerShiftedToStart) { myPointerShiftedToStart = pointerShiftedToStart; return this; } | setPointerShiftedToStart |
246,238 | Balloon () { final BalloonImpl result = new BalloonImpl( myContent, myBorder, myBorderInsets, myFill, myHideOnMouseOutside, myHideOnKeyOutside, myHideOnAction, myHideOnCloseClick, myShowCallout, myCloseButtonEnabled, myFadeoutTime, myHideOnFrameResize, myHideOnLinkClick, myClickHandler, myCloseOnClick, myAnimationCycle... | createBalloon |
246,239 | void (@NotNull LightweightWindowEvent event) { if (!result.isDisposed()) { Disposer.dispose(result); } } | onClosed |
246,240 | JComponent () { return myList; } | getComponent |
246,241 | void (ListCellRenderer<? super T> renderer) { myList.setCellRenderer(renderer); } | setRenderer |
246,242 | void (Consumer<? super T> callback) { myBuilder.setItemChosenCallback(() -> { T selectedValue = myList.getSelectedValue(); if (selectedValue != null || !myList.isSelectionEmpty()) { callback.consume(selectedValue); } }); } | setItemChosenCallback |
246,243 | void (Consumer<? super Set<T>> callback) { myBuilder.setItemChosenCallback(() -> { List<T> list = myList.getSelectedValuesList(); callback.consume(list != null ? new HashSet<>(list) : Collections.emptySet()); }); } | setItemsChosenCallback |
246,244 | JScrollPane () { return myListWithFilter.getScrollPane(); } | createScrollPane |
246,245 | boolean () { return true; } | hasOwnScrollPane |
246,246 | JComponent () { myListWithFilter = (ListWithFilter<T>)ListWithFilter.wrap(myList, new MyListWrapper(myList), myBuilder.getItemsNamer(), false, myBuilder.isFilterAlwaysVisible(), true); myListWithFilter.setAutoPackHeight(myBuilder.isAutoPackHeightOnFiltering()); return myListWithFilter; } | buildFinalComponent |
246,247 | void (MouseListener listener) { myList.addMouseListener(listener); } | addMouseListener |
246,248 | void () { JList<T> list = myList; if (list.getSelectedIndex() == -1) { list.setSelectedIndex(0); } } | autoSelect |
246,249 | GenericListComponentUpdater<T> () { return new JBListUpdater<T>((JBList<T>)(myList)); } | getBackgroundUpdater |
246,250 | void (T preselection, boolean shouldScroll) { myList.setSelectedValue(preselection, shouldScroll); } | setSelectedValue |
246,251 | void (Consumer<? super T> c) { myList.addListSelectionListener(e -> { T selectedValue = myList.getSelectedValue(); c.consume(selectedValue); }); } | setItemSelectedCallback |
246,252 | void (int selection) { myList.setSelectionMode(selection); } | setSelectionMode |
246,253 | boolean () { return myListWithFilter.resetFilter(); } | checkResetFilter |
246,254 | void (@NotNull Dimension dimension) { myList.setFixedCellWidth(dimension.width); myList.setFixedCellHeight(dimension.height); } | setFixedRendererSize |
246,255 | void (Border border) { if (myList != null) { myList.setBorder(border); } } | setBorder |
246,256 | void () { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(myList, true)); } | requestFocus |
246,257 | int (@Nullable Condition<? super AnAction> preselectActionCondition, @NotNull List<? extends PopupFactoryImpl.ActionItem> items) { int defaultOptionIndex = 0; if (preselectActionCondition != null) { for (int i = 0; i < items.size(); i++) { final AnAction action = items.get(i).getAction(); if (preselectActionCondition.v... | getDefaultOptionIndexFromSelectCondition |
246,258 | boolean (final PopupFactoryImpl.ActionItem value) { return value.isEnabled(); } | isSelectable |
246,259 | int (final PopupFactoryImpl.ActionItem value) { String text = getTextFor(value); int i = text.indexOf(UIUtil.MNEMONIC); if (i < 0) i = text.indexOf('&'); if (i < 0) i = text.indexOf('_'); return i; } | getMnemonicPos |
246,260 | Icon (final PopupFactoryImpl.ActionItem aValue) { return aValue.getIcon(false); } | getIconFor |
246,261 | Icon (PopupFactoryImpl.ActionItem value) { return value.getIcon(true); } | getSelectedIconFor |
246,262 | void (@NotNull StatusText emptyText) { } | setEmptyText |
246,263 | ListSeparator (final PopupFactoryImpl.ActionItem value) { return value.isPrependWithSeparator() ? new ListSeparator(value.getSeparatorText()) : null; } | getSeparatorAbove |
246,264 | int () { return myDefaultOptionIndex; } | getDefaultOptionIndex |
246,265 | void (@NotNull BiFunction<DataContext, AnAction, DataContext> subStepContextAdjuster) { mySubStepContextAdjuster = subStepContextAdjuster; } | setSubStepContextAdjuster |
246,266 | boolean (@NotNull PopupFactoryImpl.ActionItem item) { if (!item.isEnabled()) return true; return !(item.getAction() instanceof ActionGroup) || item.isPerformGroup(); } | isFinal |
246,267 | void (@NotNull AnAction action, @Nullable InputEvent inputEvent) { ActionUtil.invokeAction(action, myContext.get(), myActionPlace, inputEvent, null); } | performAction |
246,268 | AnActionEvent (@NotNull AnAction action, @Nullable InputEvent inputEvent) { Presentation presentation = myPresentationFactory != null ? myPresentationFactory.getPresentation(action) : action.getTemplatePresentation().clone(); return AnActionEvent.createFromInputEvent(inputEvent, myActionPlace, presentation, myContext.g... | createAnActionEvent |
246,269 | void (@NotNull JComponent component) { DataContext dataContext = myContext.get(); PresentationFactory presentationFactory = myPresentationFactory != null ? myPresentationFactory : new PresentationFactory(); List<PopupFactoryImpl.ActionItem> values = getValues(); Utils.updateComponentActions( component, ContainerUtil.ma... | updateStepItems |
246,270 | Runnable () { return myFinalRunnable; } | getFinalRunnable |
246,271 | boolean (final PopupFactoryImpl.ActionItem selectedValue) { return selectedValue != null && selectedValue.isEnabled() && selectedValue.getAction() instanceof ActionGroup && !selectedValue.isSubstepSuppressed(); } | hasSubstep |
246,272 | void () { } | canceled |
246,273 | boolean () { return myEnableMnemonics; } | isMnemonicsNavigationEnabled |
246,274 | String (final PopupFactoryImpl.ActionItem value) { return getTextFor(value); } | getIndexedString |
246,275 | boolean () { return true; } | isSpeedSearchEnabled |
246,276 | boolean () { return myAutoSelectionEnabled; } | isAutoSelectionEnabled |
246,277 | void (int from, int where, int preserveSeparatorAt) { if (myItems.get(from).isPrependWithSeparator() || myItems.get(where).isPrependWithSeparator()) { String fromText = myItems.get(from).getSeparatorText(); String whereText = myItems.get(where).getSeparatorText(); myItems.get(from).setSeparatorText(null); if (preserveS... | reorderItems |
246,278 | boolean (@NotNull String place) { return ActionPlaces.isPopupPlace(place) || ActionPlaces.MAIN_MENU.equals(place); } | isPopupOrMainMenuPlace |
246,279 | String (@Nullable String place) { return place != null && isPopupOrMainMenuPlace(place) ? place : ActionPlaces.getPopupPlace(place); } | getPopupOrMainMenuPlace |
246,280 | ComponentPopupBuilder (boolean mayBeParent) { myMayBeParent = mayBeParent; return this; } | setMayBeParent |
246,281 | ComponentPopupBuilder (@NlsContexts.PopupTitle String title) { myTitle = title; return this; } | setTitle |
246,282 | ComponentPopupBuilder (final boolean resizable) { myResizable = resizable; return this; } | setResizable |
246,283 | ComponentPopupBuilder (final boolean movable) { myMovable = movable; return this; } | setMovable |
246,284 | ComponentPopupBuilder (final boolean cancel) { myCancelOnClickOutside = cancel; return this; } | setCancelOnClickOutside |
246,285 | ComponentPopupBuilder (final @NotNull MouseChecker shouldCancel) { myCancelOnMouseOutCallback = shouldCancel; return this; } | setCancelOnMouseOutCallback |
246,286 | ComponentPopupBuilder (final @NotNull JBPopupListener listener) { myListeners.add(listener); return this; } | addListener |
246,287 | ComponentPopupBuilder (final boolean requestFocus) { myRequestFocus = requestFocus; return this; } | setRequestFocus |
246,288 | ComponentPopupBuilder (final boolean focusable) { myFocusable = focusable; return this; } | setFocusable |
246,289 | ComponentPopupBuilder (final Project project, final String key, final boolean useForXYLocation) { myDimensionServiceKey = key; myUseDimServiceForXYLocation = useForXYLocation; myProject = project; return this; } | setDimensionServiceKey |
246,290 | ComponentPopupBuilder (final @NotNull Computable<Boolean> shouldProceed) { myCallback = shouldProceed; return this; } | setCancelCallback |
246,291 | ComponentPopupBuilder (final @NotNull IconButton cancelButton) { myCancelButton = cancelButton; return this; } | setCancelButton |
246,292 | ComponentPopupBuilder (@NotNull ActiveComponent button) { myCommandButton = button; return this; } | setCommandButton |
246,293 | ComponentPopupBuilder (final @Nullable Processor<? super JBPopup> callback) { myPinCallback = callback; return this; } | setCouldPin |
246,294 | ComponentPopupBuilder (@NotNull List<? extends Pair<ActionListener, KeyStroke>> keyboardActions) { myKeyboardActions = keyboardActions; return this; } | setKeyboardActions |
246,295 | ComponentPopupBuilder (@NotNull Component button) { mySettingsButtons = button; return this; } | setSettingButtons |
246,296 | ComponentPopupBuilder (final boolean cancelOnWindow) { myCancelOnWindow = cancelOnWindow; return this; } | setCancelOnOtherWindowOpen |
246,297 | ComponentPopupBuilder (boolean cancelOnWindowDeactivation) { myCancelOnWindowDeactivation = cancelOnWindowDeactivation; return this; } | setCancelOnWindowDeactivation |
246,298 | ComponentPopupBuilder (@NotNull BooleanFunction<? super KeyEvent> handler) { myKeyEventHandler = handler; return this; } | setKeyEventHandler |
246,299 | ComponentPopupBuilder (Project project) { myProject = project; return this; } | setProject |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.