Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
257,900 | Dimension () { Dimension windowSize = DiffUtil.getDefaultDiffWindowSize(); Dimension size = super.getPreferredSize(); return new Dimension(Math.max(windowSize.width, size.width), Math.max(windowSize.height, size.height)); } | getPreferredSize |
257,901 | DiffRequestProcessor () { return new MyCacheDiffRequestChainProcessor(myProject, myRequestChain); } | createProcessor |
257,902 | void (@NotNull String title) { getWrapper().setTitle(title); } | setWindowTitle |
257,903 | void () { updateRequest(true, false, null); } | reloadRequest |
257,904 | void (final boolean force, @Nullable final ScrollToPolicy scrollToChangePolicy) { updateRequest(force, true, scrollToChangePolicy); } | updateRequest |
257,905 | void (final boolean force, boolean useCache, @Nullable final ScrollToPolicy scrollToChangePolicy) { ThreadingAssertions.assertEventDispatchThread(); if (isDisposed()) return; final T requestProvider = getCurrentRequestProvider(); if (requestProvider == null) { myQueue.abort(); finishUpdate(NoDiffRequest.INSTANCE, force... | updateRequest |
257,906 | void (@NotNull DiffRequest request, boolean force, @Nullable ScrollToPolicy scrollToChangePolicy, @NotNull T requestProvider) { boolean shouldValidate = myValidateQueuedProvider; myRequestCache.put(requestProvider, request); finishUpdate(request, force, scrollToChangePolicy); if (shouldValidate) { updateRequest(); } } | finishRequestLoading |
257,907 | void (@NotNull DiffRequest request, boolean force, @Nullable ScrollToPolicy scrollToChangePolicy) { myQueuedProvider = null; myValidateQueuedProvider = false; applyRequest(request, force, scrollToChangePolicy); } | finishUpdate |
257,908 | int () { return ProgressIndicatorWithDelayedPresentation.DEFAULT_PROGRESS_DIALOG_POSTPONE_TIME_MILLIS; } | getFastLoadingTimeMillis |
257,909 | DiffRequest (@NotNull T provider) { return myRequestCache.get(provider); } | loadRequestFast |
257,910 | DiffRequest (@NotNull T provider, @NotNull ProgressIndicator indicator) { String name = getRequestName(provider); try { return loadRequest(provider, indicator); } catch (ProcessCanceledException e) { OperationCanceledDiffRequest request = new OperationCanceledDiffRequest(name); request.putUserData(DiffUserDataKeys.CONT... | doLoadRequest |
257,911 | void () { super.onDispose(); myQueue.abort(); myRequestCache.clear(); } | onDispose |
257,912 | void () { myRequestCache.clear(); } | dropCaches |
257,913 | void (@NotNull AnActionEvent e) { myRequestCache.remove(myProducer); updateRequest(true); } | actionPerformed |
257,914 | String (@NotNull DiffRequestProducer provider) { return provider.getName(); } | getRequestName |
257,915 | void () { if (myRequestChain instanceof AsyncDiffRequestChain) { ((AsyncDiffRequestChain)myRequestChain).onAssigned(false); } super.onDispose(); } | onDispose |
257,916 | DiffRequestProducer () { List<? extends DiffRequestProducer> requests = myRequestChain.getRequests(); if (myIndex < 0 || myIndex >= requests.size()) return null; return requests.get(myIndex); } | getCurrentRequestProvider |
257,917 | DiffRequestChain () { return myRequestChain; } | getRequestChain |
257,918 | void (int index) { myIndex = index; updateRequest(); } | setCurrentRequest |
257,919 | boolean (boolean fromUpdate) { return myIndex < myRequestChain.getRequests().size() - 1; } | hasNextChange |
257,920 | boolean (boolean fromUpdate) { return myIndex > 0; } | hasPrevChange |
257,921 | void (boolean fromDifferences) { goToNextChangeImpl(fromDifferences, () -> { myIndex += 1; }); } | goToNextChange |
257,922 | void (boolean fromDifferences) { goToPrevChangeImpl(fromDifferences, () -> { myIndex -= 1; }); } | goToPrevChange |
257,923 | boolean () { return myRequestChain.getRequests().size() > 1; } | isNavigationEnabled |
257,924 | AnAction () { return GoToChangePopupBuilder.create(myRequestChain, index -> { if (index >= 0 && index < myRequestChain.getRequests().size() && index != myIndex) { setCurrentRequest(index); } }, myIndex); } | createGoToChangeAction |
257,925 | void () { dropCaches(); myIndex = myRequestChain.getIndex(); updateRequest(true); } | onRequestsLoaded |
257,926 | BorderLayoutPanel () { BorderLayoutPanel topPanel; if (myIsNewToolbar) { BorderLayoutPanel rightPanel = JBUI.Panels.simplePanel(myRightToolbarWrapper).addToLeft(myProgressBar); topPanel = JBUI.Panels.simplePanel(myDiffInfoWrapper).addToLeft(myToolbarWrapper).addToRight(rightPanel); GuiUtils.installVisibilityReferent(to... | buildTopPanel |
257,927 | boolean (@NotNull FrameDiffTool.ToolbarComponents toolbarComponents) { return toolbarComponents.needTopToolbarBorder; } | shouldAddToolbarBottomBorder |
257,928 | void (@NotNull DiffRequestProcessorListener listener, @Nullable Disposable disposable) { if (disposable != null) { myEventDispatcher.addListener(listener, disposable); } else { myEventDispatcher.addListener(listener); } } | addListener |
257,929 | void () { updateRequest(true); } | reloadRequest |
257,930 | void () { updateRequest(false); } | updateRequest |
257,931 | void (boolean force) { updateRequest(force, myCurrentScrollToPolicy); } | updateRequest |
257,932 | FrameDiffTool (@NotNull List<? extends DiffTool> tools, @NotNull DiffContext diffContext, @NotNull DiffRequest diffRequest, @Nullable FrameDiffTool forcedDiffTool) { if (forcedDiffTool != null) { return forcedDiffTool.canShow(diffContext, diffRequest) ? forcedDiffTool : ErrorDiffTool.INSTANCE; } List<FrameDiffTool> fit... | findFittedTool |
257,933 | List<FrameDiffTool> (@NotNull List<? extends DiffTool> tools, @NotNull DiffContext diffContext, @NotNull DiffRequest diffRequest) { List<FrameDiffTool> result = new ArrayList<>(); for (DiffTool tool : tools) { try { if (tool instanceof FrameDiffTool) { if (tool.canShow(diffContext, diffRequest)) { result.add((FrameDiff... | filterFittedTools |
257,934 | List<DiffTool> () { return DiffManagerEx.getInstance().getDiffTools(); } | getAllKnownTools |
257,935 | void () { myToolOrder = getToolOrderFromSettings(getAllKnownTools()); } | readToolOrderFromSettings |
257,936 | void (@NotNull DiffTool diffTool) { if (myForcedDiffTool != null) return; if (isSameToolOrSubstitutor(diffTool, myState.getActiveTool(), myContext, myActiveRequest)) return; DiffUsageTriggerCollector.logToggleDiffTool(myProject, diffTool, myContext.getUserData(DiffUserDataKeys.PLACE)); myToolOrder = moveToolToTop(diffT... | switchToDiffTool |
257,937 | List<DiffTool> (@NotNull DiffTool tool, @NotNull List<DiffTool> oldOrder, @NotNull DiffContext diffContext, @NotNull DiffRequest diffRequest) { List<FrameDiffTool> fittedTools = filterFittedTools(oldOrder, diffContext, diffRequest); FrameDiffTool toolToReplace = ContainerUtil.getFirstItem(fittedTools); if (toolToReplac... | moveToolToTop |
257,938 | ViewerState (@NotNull FrameDiffTool frameTool) { DiffViewer viewer = frameTool.createComponent(myContext, myActiveRequest); for (DiffExtension extension : DiffExtension.EP_NAME.getExtensions()) { try { extension.onViewerCreated(viewer, myContext, myActiveRequest); } catch (Throwable e) { LOG.error(e); } } DiffViewerWra... | createState |
257,939 | void (@NotNull DiffRequest request, boolean force, @Nullable ScrollToPolicy scrollToChangePolicy) { applyRequest(request, force, scrollToChangePolicy, false); } | applyRequest |
257,940 | void (@NotNull DiffRequest request, boolean force, @Nullable ScrollToPolicy scrollToChangePolicy, boolean sync) { ThreadingAssertions.assertEventDispatchThread(); myIterationState = IterationState.NONE; force = force || (myQueuedApplyRequest != null && myQueuedApplyRequest.force); myQueuedApplyRequest = new ApplyData(r... | applyRequest |
257,941 | void (@NotNull DiffRequest request, boolean force, @Nullable ScrollToPolicy scrollToChangePolicy) { if (!force && request == myActiveRequest) return; request.putUserData(DiffUserDataKeysEx.SCROLL_TO_CHANGE, scrollToChangePolicy); DiffUtil.runPreservingFocus(myContext, () -> { myState.destroy(); myToolbarStatusPanel.set... | doApplyRequest |
257,942 | void (@NotNull @NlsContexts.DialogTitle String title) { } | setWindowTitle |
257,943 | void () { } | onDispose |
257,944 | List<AnAction> () { List<AnAction> actions = List.of( new MyPrevDifferenceAction(), new MyNextDifferenceAction(), new OpenInEditorAction(), Separator.getInstance(), new MyPrevChangeAction(), new MyNextChangeAction()); AnAction goToChangeAction = createGoToChangeAction(); if (goToChangeAction != null) { actions = Contai... | getNavigationActions |
257,945 | boolean () { Window window = SwingUtilities.getWindowAncestor(myPanel); return window != null && window.isFocused(); } | isWindowFocused |
257,946 | boolean () { return DiffUtil.isFocusedComponentInWindow(myContentPanel) || DiffUtil.isFocusedComponentInWindow(myToolbar.getComponent()) || (myIsNewToolbar && DiffUtil.isFocusedComponentInWindow(myRightToolbar.getComponent())); } | isFocusedInWindow |
257,947 | void () { DiffUtil.requestFocusInWindow(getPreferredFocusedComponent()); } | requestFocusInWindow |
257,948 | List<DiffTool> (@NotNull List<? extends DiffTool> availableTools) { return getToolOrderFromSettings(getSettings(), availableTools); } | getToolOrderFromSettings |
257,949 | List<DiffTool> (@NotNull DiffSettings diffSettings, @NotNull List<? extends DiffTool> availableTools) { List<DiffTool> result = new ArrayList<>(); List<String> savedOrder = diffSettings.getDiffToolsOrder(); for (final String clazz : savedOrder) { DiffTool tool = ContainerUtil.find(availableTools, t -> t.getClass().getC... | getToolOrderFromSettings |
257,950 | void (@NotNull List<? extends DiffTool> toolOrder) { List<String> savedOrder = new ArrayList<>(); for (DiffTool tool : toolOrder) { savedOrder.add(tool.getClass().getCanonicalName()); } getSettings().setDiffToolsOrder(savedOrder); } | updateToolOrderSettings |
257,951 | void () { if (myDisposed) return; UIUtil.invokeLaterIfNeeded(() -> { if (myDisposed) return; myDisposed = true; onDispose(); myState.destroy(); myToolbarStatusPanel.setContent(null); myContentPanel.setContent(null); myDiffInfoWrapper.setContent(null); myToolbarGroup.removeAll(); myRightToolbarGroup.removeAll(); myPopup... | dispose |
257,952 | void (@Nullable List<? extends AnAction> viewerActions) { myToolbarGroup.removeAll(); boolean oldToolbar = !myIsNewToolbar; List<AnAction> navigationActions = new ArrayList<>(getNavigationActions()); if (oldToolbar) { navigationActions.add(new MyChangeDiffToolComboBoxAction()); } else { myRightToolbarGroup.add(new MyDi... | collectToolbarActions |
257,953 | void (@Nullable List<? extends AnAction> viewerActions) { myPopupActionGroup.removeAll(); DiffUtil.addActionBlock(myPopupActionGroup, new MyChangeDiffToolActionGroup()); DiffUtil.addActionBlock(myPopupActionGroup, viewerActions); } | collectPopupActions |
257,954 | void (@Nullable List<? extends AnAction> viewerActions) { collectToolbarActions(viewerActions); ((ActionToolbarImpl)myToolbar).reset(); // do not leak previous DiffViewer via caches myToolbar.updateActionsImmediately(); recursiveRegisterShortcutSet(myToolbarGroup, myMainPanel, null); if (myIsNewToolbar) { ((ActionToolb... | buildToolbar |
257,955 | ActionToolbar () { return myToolbar; } | getToolbar |
257,956 | void (@Nullable List<? extends AnAction> viewerActions) { collectPopupActions(viewerActions); DiffUtil.registerAction(new ShowActionGroupPopupAction(), myMainPanel); } | buildActionPopup |
257,957 | void (@Nullable @NlsContexts.DialogTitle String title) { if (getContextUserData(DiffUserDataKeys.DO_NOT_CHANGE_WINDOW_TITLE) == Boolean.TRUE) return; if (title == null) title = DiffBundle.message("diff.files.dialog.title"); setWindowTitle(title); } | setTitle |
257,958 | JComponent () { return myPanel; } | getComponent |
257,959 | JComponent () { JComponent component = myState.getPreferredFocusedComponent(); JComponent fallback = myToolbar.getComponent(); if (component == null || !component.isFocusable()) return fallback; if (!component.isShowing() && fallback.isShowing()) return fallback; return component; } | getPreferredFocusedComponent |
257,960 | DiffContext () { return myContext; } | getContext |
257,961 | DiffSettings () { return mySettings; } | getSettings |
257,962 | boolean () { return myDisposed; } | isDisposed |
257,963 | void (@NotNull AnActionEvent e) { try { ExternalDiffTool.showRequest(e.getProject(), myActiveRequest, myExternalTool); } catch (ProcessCanceledException ex) { throw ex; } catch (Throwable ex) { Messages.showErrorDialog(e.getProject(), ex.getMessage(), DiffBundle.message("can.t.show.diff.in.external.tool")); } } | actionPerformed |
257,964 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,965 | void (@NotNull AnActionEvent e) { getShowActions().get(0).actionPerformed(e); } | actionPerformed |
257,966 | void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); if (!ExternalDiffTool.isEnabled()) { presentation.setEnabledAndVisible(false); return; } List<ShowInExternalToolAction> actions = getShowActions(); presentation.setEnabled(ExternalDiffTool.canShow(myActiveRequest)); presentation.setPerfo... | update |
257,967 | List<ShowInExternalToolAction> () { Map<ExternalToolGroup, List<ExternalTool>> externalTools = ExternalDiffSettings.getInstance().getExternalTools(); List<ExternalTool> diffTools = externalTools.getOrDefault(ExternalToolGroup.DIFF_TOOL, Collections.emptyList()); return ContainerUtil.map(diffTools, ShowInExternalToolAct... | getShowActions |
257,968 | void (@NotNull Project project, @NotNull DiffTool diffTool) { switchToDiffTool(diffTool); } | onSelected |
257,969 | List<DiffTool> () { return new ArrayList<>(filterFittedTools(getAllKnownTools(), myContext, myActiveRequest)); } | getTools |
257,970 | DiffTool () { return myState.getActiveTool(); } | getActiveTool |
257,971 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
257,972 | void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); if (myForcedDiffTool != null) { presentation.setEnabledAndVisible(false); return; } DiffTool activeTool = e.getData(ACTIVE_DIFF_TOOL); DiffContext diffContext = e.getData(DiffDataKeys.DIFF_CONTEXT); DiffRequest diffRequest = e.getData(Di... | update |
257,973 | DefaultActionGroup (@NotNull JComponent button, @NotNull DataContext context) { DiffContext diffContext = context.getData(DiffDataKeys.DIFF_CONTEXT); DiffRequest diffRequest = context.getData(DiffDataKeys.DIFF_REQUEST); if (diffContext == null || diffRequest == null) return new DefaultActionGroup(); DefaultActionGroup ... | createPopupActionGroup |
257,974 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
257,975 | boolean (@NotNull DiffTool tool, @NotNull DiffTool activeTool, @NotNull DiffContext diffContext, @NotNull DiffRequest diffRequest) { if (tool == activeTool) return true; if (findToolSubstitutor(tool, diffContext, diffRequest) == activeTool) return true; return false; } | isSameToolOrSubstitutor |
257,976 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
257,977 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabledAndVisible(myForcedDiffTool == null); } | update |
257,978 | void (@NotNull AnActionEvent e) { switchToDiffTool(myDiffTool); } | actionPerformed |
257,979 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,980 | void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(myPopupActionGroup.getChildrenCount() > 0); } | update |
257,981 | void (@NotNull AnActionEvent e) { ListPopup popup = JBPopupFactory.getInstance().createActionGroupPopup( DiffBundle.message("diff.actions"), myPopupActionGroup, e.getDataContext(), JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false); popup.showInCenterOf(myPanel); } | actionPerformed |
257,982 | boolean (boolean fromUpdate) { return false; } | hasNextChange |
257,983 | boolean (boolean fromUpdate) { return false; } | hasPrevChange |
257,984 | void (boolean fromDifferences) { } | goToNextChange |
257,985 | void (boolean fromDifferences) { } | goToPrevChange |
257,986 | boolean () { return false; } | isNavigationEnabled |
257,987 | void (boolean fromDifferences, @NotNull Runnable navigationTask) { runWithScrollPolicy(fromDifferences, ScrollToPolicy.FIRST_CHANGE, navigationTask); } | goToNextChangeImpl |
257,988 | void (boolean fromDifferences, @NotNull Runnable navigationTask) { runWithScrollPolicy(fromDifferences, ScrollToPolicy.LAST_CHANGE, navigationTask); } | goToPrevChangeImpl |
257,989 | void (boolean fromDifferences, @NotNull ScrollToPolicy lastChange, @NotNull Runnable navigationTask) { if (fromDifferences) { assert myCurrentScrollToPolicy == null; myCurrentScrollToPolicy = lastChange; try { navigationTask.run(); updateRequest(); } finally { myCurrentScrollToPolicy = null; } } else { navigationTask.r... | runWithScrollPolicy |
257,990 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,991 | void (@NotNull AnActionEvent e) { if (DiffUtil.isFromShortcut(e)) { e.getPresentation().setEnabledAndVisible(true); return; } PrevNextDifferenceIterable iterable = e.getData(DiffDataKeys.PREV_NEXT_DIFFERENCE_ITERABLE); if (iterable != null && iterable.canGoNext()) { e.getPresentation().setEnabled(true); return; } if (g... | update |
257,992 | void (@NotNull AnActionEvent e) { PrevNextDifferenceIterable iterable = e.getData(DiffDataKeys.PREV_NEXT_DIFFERENCE_ITERABLE); if (iterable != null && iterable.canGoNext()) { iterable.goNext(); myIterationState = IterationState.NONE; return; } if (!isNavigationEnabled() || !hasNextChange(false) || !getSettings().isGoTo... | actionPerformed |
257,993 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
257,994 | void (@NotNull AnActionEvent e) { if (DiffUtil.isFromShortcut(e)) { e.getPresentation().setEnabledAndVisible(true); return; } PrevNextDifferenceIterable iterable = e.getData(DiffDataKeys.PREV_NEXT_DIFFERENCE_ITERABLE); if (iterable != null && iterable.canGoPrev()) { e.getPresentation().setEnabled(true); return; } if (g... | update |
257,995 | void (@NotNull AnActionEvent e) { PrevNextDifferenceIterable iterable = e.getData(DiffDataKeys.PREV_NEXT_DIFFERENCE_ITERABLE); if (iterable != null && iterable.canGoPrev()) { iterable.goPrev(); myIterationState = IterationState.NONE; return; } if (!isNavigationEnabled() || !hasPrevChange(false) || !getSettings().isGoTo... | actionPerformed |
257,996 | void (@NotNull AnActionEvent e, boolean next) { notifyMessage(e, myContentPanel, next); } | notifyMessage |
257,997 | void (@NotNull AnActionEvent e, @NotNull JComponent contentPanel, boolean next) { if (!contentPanel.isShowing()) return; Editor editor = e.getData(DiffDataKeys.CURRENT_EDITOR); // TODO: provide "change" word in chain UserData - for tests/etc String message = DiffUtil.createNotificationText(next ? DiffBundle.message("pr... | notifyMessage |
257,998 | HintHint (@NotNull JComponent component, @NotNull Point point, boolean above) { return new HintHint(component, point) .setPreferredPosition(above ? Balloon.Position.above : Balloon.Position.below) .setAwtTooltip(true) .setFont(StartupUiUtil.getLabelFont().deriveFont(Font.BOLD)) .setBorderColor(HintUtil.getHintBorderCol... | createNotifyHint |
257,999 | ActionUpdateThread () { return ActionUpdateThread.EDT; } | getActionUpdateThread |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.