Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
260,600 | long (@NotNull CommittedChangeList list) { return myVcsZipper.getNumber(list); } | getNumber |
260,601 | void (@NotNull RepositoryLocation location, long number, String newMessage) { myTaskQueue.run(() -> { final ChangesCacheFile file = myCachesHolder.haveCache(location); if (file != null) { try { if (file.isEmpty()) return; file.editChangelist(number, newMessage); loadIncomingChanges(true); fireChangesLoaded(location, Co... | commitMessageChanged |
260,602 | void (final @Nullable Consumer<? super List<CommittedChangeList>> consumer, final boolean inBackground) { debug("Loading incoming changes"); final Runnable task = () -> { final List<CommittedChangeList> list = loadIncomingChanges(inBackground); if (consumer != null) { consumer.consume(new ArrayList<>(list)); } }; myTas... | loadIncomingChangesAsync |
260,603 | void (@Nullable Runnable continuation) { myTaskQueue.run(() -> { myCachesHolder.clearAllCaches(); myCachedIncomingChangeLists = null; if (continuation != null) continuation.run(); invokeLaterIfNeededOnSyncPublisher(myProject, COMMITTED_TOPIC, listener -> listener.changesCleared()); }); } | clearCaches |
260,604 | void (final UpdatedFiles updatedFiles) { processUpdatedFiles(updatedFiles, null); } | processUpdatedFiles |
260,605 | void (final UpdatedFiles updatedFiles, final @Nullable Consumer<? super List<CommittedChangeList>> incomingChangesConsumer) { final Runnable task = () -> { debug("Processing updated files"); final Collection<ChangesCacheFile> caches = myCachesHolder.getAllCaches(); myPendingUpdateCount += caches.size(); for(final Chang... | processUpdatedFiles |
260,606 | void (@Nullable Consumer<? super List<CommittedChangeList>> incomingChangesConsumer) { myPendingUpdateCount--; if (myPendingUpdateCount == 0) { fireIncomingChangesUpdated(myNewIncomingChanges); if (incomingChangesConsumer != null) { incomingChangesConsumer.consume(new ArrayList<>(myNewIncomingChanges)); } myNewIncoming... | pendingUpdateProcessed |
260,607 | void (final ChangesCacheFile cache, final UpdatedFiles updatedFiles, final @Nullable Consumer<? super List<CommittedChangeList>> incomingChangesConsumer) { refreshCacheAsync(cache, false, new RefreshResultConsumer() { @Override public void receivedChanges(final List<CommittedChangeList> committedChangeLists) { try { de... | processUpdatedFilesAfterRefresh |
260,608 | void (final List<CommittedChangeList> committedChangeLists) { try { debug("Processing updated files after refresh in " + cache.getLocation()); boolean result = true; if (committedChangeLists.size() > 0) { // received some new changelists, try to process updated files again result = cache.processUpdatedFiles(updatedFile... | receivedChanges |
260,609 | void (VcsException ex) { notifyRefreshError(ex); } | receivedError |
260,610 | void (@NotNull Collection<? extends CommittedChangeList> incomingChanges) { List<CommittedChangeList> incomingChangesCopy = unmodifiableOrEmptyList(new ArrayList<>(incomingChanges)); invokeLaterIfNeededOnSyncPublisher(myProject, COMMITTED_TOPIC, listener -> listener.incomingChangesUpdated(incomingChangesCopy)); } | fireIncomingChangesUpdated |
260,611 | void (final VcsException e) { invokeLaterIfNeededOnSyncPublisher(myProject, COMMITTED_TOPIC, listener -> listener.refreshErrorStatusChanged(e)); } | notifyRefreshError |
260,612 | boolean () { return myRefreshingIncomingChanges; } | isRefreshingIncomingChanges |
260,613 | boolean () { boolean hasChanges = false; final Collection<ChangesCacheFile> caches = myCachesHolder.getAllCaches(); for(ChangesCacheFile file: caches) { try { if (file.isEmpty()) { continue; } debug("Refreshing incoming changes for " + file.getLocation()); boolean changesForCache = file.refreshIncomingChanges(); hasCha... | refreshIncomingChanges |
260,614 | void () { debug("Refreshing incoming changes in background"); myRefreshingIncomingChanges = true; myTaskQueue.run(() -> { refreshIncomingChanges(); refreshIncomingUi(); }); } | refreshIncomingChangesAsync |
260,615 | void () { ApplicationManager.getApplication().invokeLater(() -> { myRefreshingIncomingChanges = false; debug("Incoming changes refresh complete, clearing cached incoming changes"); notifyReloadIncomingChanges(); }, ModalityState.nonModal(), myProject.getDisposed()); } | refreshIncomingUi |
260,616 | void (final boolean initIfEmpty, final boolean inBackground) { final Runnable task = () -> { Collection<ChangesCacheFile> files = myCachesHolder.getAllCaches(); final RefreshResultConsumer notifyConsumer = new RefreshResultConsumer() { private VcsException myError = null; private int myCount = 0; private int totalChang... | refreshAllCachesAsync |
260,617 | void (List<CommittedChangeList> changes) { totalChangesCount += changes.size(); checkDone(); } | receivedChanges |
260,618 | void (VcsException ex) { myError = ex; checkDone(); } | receivedError |
260,619 | void () { myCount++; if (myCount == files.size()) { myTaskQueue.run(() -> { if (totalChangesCount > 0) { notifyReloadIncomingChanges(); } else { myProject.getMessageBus().syncPublisher(CommittedChangesTreeBrowser.ITEMS_RELOADED).emptyRefresh(); } }); notifyRefreshError(myError); } } | checkDone |
260,620 | void () { myCachedIncomingChangeLists = null; Runnable runnable = () -> loadIncomingChanges(true); if (ApplicationManager.getApplication().isDispatchThread()) { myTaskQueue.run(runnable); } else { runnable.run(); } } | notifyReloadIncomingChanges |
260,621 | void (final ChangesCacheFile cache, final boolean initIfEmpty, final @Nullable RefreshResultConsumer consumer) { refreshCacheAsync(cache, initIfEmpty, consumer, true); } | refreshCacheAsync |
260,622 | void (final ChangesCacheFile cache, final boolean initIfEmpty, final @Nullable RefreshResultConsumer consumer, final boolean asynch) { try { if (!initIfEmpty && cache.isEmpty()) { return; } } catch (IOException e) { LOG.error(e); return; } final Runnable task = () -> { try { final List<CommittedChangeList> list; if (in... | refreshCacheAsync |
260,623 | void () { cancelRefreshTimer(); if (getState().isRefreshEnabled()) { refreshRunnable = new MyRefreshRunnable(this); // if "schedule with fixed rate" is used, then after waking up from stand-by mode, events are generated for inactive period // it does not make sense myFuture = JobScheduler.getScheduler().scheduleWithFix... | updateRefreshTimer |
260,624 | void () { if (refreshRunnable != null) { refreshRunnable.cancel(); refreshRunnable = null; } if (myFuture != null) { myFuture.cancel(false); myFuture = null; } } | cancelRefreshTimer |
260,625 | long (final ChangesCacheFile file) { try { if ((file == null) || (file.isEmpty())) { return -1; } return file.getLastCachedChangelist(); } catch (IOException e) { return -1; } } | getLatestListForFile |
260,626 | CachesHolder () { return myCachesHolder; } | getCachesHolder |
260,627 | void (final RepositoryLocation location, final long myLastCl, final List<CommittedChangeList> lists) { myExternallyLoadedChangeLists.put(location.getKey(), new Pair<>(myLastCl, lists)); } | submitExternallyLoaded |
260,628 | void () { myCache = null; } | cancel |
260,629 | void () { final CommittedChangesCache cache = myCache; if (cache == null) return; cache.refreshAllCachesAsync(false, true); for(ChangesCacheFile file: cache.getCachesHolder().getAllCaches()) { if (file.getVcs().isVcsBackgroundOperationsAllowed(file.getRootPath().getVirtualFile())) { if (file.getProvider().refreshIncomi... | run |
260,630 | RepositoryLocationCache () { return myLocationCache; } | getLocationCache |
260,631 | void (final RowSorter.SortKey sortKey) { mySortKey = sortKey; } | setSortKey |
260,632 | Object (final Object o) { //noinspection unchecked return myColumn.getValue((ChangeList)o); } | valueOf |
260,633 | Comparator () { return myColumn.getComparator(); } | getComparator |
260,634 | ChangeListColumn () { return myColumn; } | getColumn |
260,635 | boolean () { return myAsynchLoad; } | isAsynchLoad |
260,636 | void (final ListSelectionEvent e) { for (ChangeListener listener : myListeners) { listener.stateChanged(new ChangeEvent(this)); } } | valueChanged |
260,637 | void (@NotNull JList list, @Nls String value, int index, boolean selected, boolean hasFocus) { if (index == 0) { append(value, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES); } else if (value.length() == 0) { append(VcsBundle.message("committed.changes.filter.none"), SimpleTextAttributes.GRAYED_ATTRIBUTES); } else { app... | customizeCellRenderer |
260,638 | CommittedChangesFilterKey () { return new CommittedChangesFilterKey(toString(), CommittedChangesFilterPriority.USER); } | getKey |
260,639 | String () { return myColumn.getTitle(); } | toString |
260,640 | JComponent () { return myScrollPane; } | getFilterUI |
260,641 | void (@NotNull List<? extends CommittedChangeList> changeLists) { myPreferredSelection = null; appendFilterBase(changeLists); } | setFilterBase |
260,642 | void (@NotNull ChangeListener listener) { myListeners.add(listener); } | addChangeListener |
260,643 | void (@NotNull ChangeListener listener) { myListeners.remove(listener); } | removeChangeListener |
260,644 | void () { myPreferredSelection = myValueList.getSelectedValuesList(); myValueList.clearSelection(); myModel.clear(); myValueList.revalidate(); myValueList.repaint(); } | resetFilterBase |
260,645 | void (@NotNull List<? extends CommittedChangeList> changeLists) { final List<String> oldSelection = myModel.isEmpty() ? myPreferredSelection : myValueList.getSelectedValuesList(); myModel.addNext(changeLists, ourConvertorInstance); if (oldSelection != null) { for (@Nls String o : oldSelection) { myValueList.setSelected... | appendFilterBase |
260,646 | String (CommittedChangeList o) { if (myProviderClass == null || myProviderClass.isInstance(o.getVcs().getCommittedChangesProvider())) { return myColumn.getValue(ReceivedChangeList.unwrap(o)).toString(); } return null; } | convert |
260,647 | List<CommittedChangeList> (@NotNull List<? extends CommittedChangeList> changeLists) { final List<String> selection = myValueList.getSelectedValuesList(); if (myValueList.getSelectedIndex() == 0 || selection.isEmpty()) { return new ArrayList<>(changeLists); } List<CommittedChangeList> result = new ArrayList<>(); for (C... | filterChangeLists |
260,648 | int () { return myValues.length + 1; } | getSize |
260,649 | boolean () { return myValues.length == 0; } | isEmpty |
260,650 | String (int index) { if (index == 0) { return VcsBundle.message("committed.changes.filter.all"); } return myValues[index - 1]; } | getElementAt |
260,651 | void () { myValues = ArrayUtilRt.EMPTY_STRING_ARRAY; } | clear |
260,652 | RepositoryLocation (@NotNull FilePath root) { AbstractVcs vcs = ProjectLevelVcsManager.getInstance(myProject).getVcsFor(root); if (vcs == null) return null; return CommittedChangesCache.getInstance(myProject).getLocationCache().getLocation(vcs, root, false); } | getLocationFor |
260,653 | VcsCommittedListsZipper () { throw new UnsupportedOperationException(); } | getZipper |
260,654 | List<CommittedChangeList> (CompositeCommittedChangesProvider.CompositeChangeBrowserSettings settings, RepositoryLocation location, int maxCount) { throw new UnsupportedOperationException(); } | getCommittedChanges |
260,655 | void (CompositeChangeBrowserSettings settings, @NotNull RepositoryLocation location, int maxCount, @NotNull AsynchConsumer<? super CommittedChangeList> consumer) { throw new UnsupportedOperationException(); } | loadCommittedChanges |
260,656 | VcsCommittedViewAuxiliary (@NotNull DecoratorManager manager, @Nullable RepositoryLocation location) { JTabbedPane tabbedPane = null; List<AnAction> actions = null; List<AnAction> toolbarActions = null; final List<Runnable> calledOnDispose = new ArrayList<>(); for (AbstractVcs baseVcs : myBaseVcss) { CommittedChangesPr... | createActions |
260,657 | int () { throw new UnsupportedOperationException(); } | getUnlimitedCountValue |
260,658 | RepositoryLocation (@NotNull VirtualFile file) { throw new UnsupportedOperationException(); } | getForNonLocal |
260,659 | void (final AbstractVcs vcs, final ChangeBrowserSettings settings) { myMap.put(vcs, settings); } | put |
260,660 | ChangeBrowserSettings (final AbstractVcs vcs) { return myMap.get(vcs); } | get |
260,661 | void (Collection<? extends AbstractVcs> vcss) { myEnabledVcs.clear(); myEnabledVcs.addAll(vcss); } | setEnabledVcss |
260,662 | Collection<AbstractVcs> () { return myEnabledVcs; } | getEnabledVcss |
260,663 | void (ActionEvent e) { updateVcsEnabled(checkBox, editor); } | actionPerformed |
260,664 | void (@NotNull JCheckBox checkBox, @NotNull ChangesBrowserSettingsEditor<?> editor) { UIUtil.setEnabled(editor.getComponent(), checkBox.isSelected(), true); if (checkBox.isSelected()) { editor.updateEnabledControls(); } } | updateVcsEnabled |
260,665 | JComponent () { return myCompositePanel; } | getComponent |
260,666 | CompositeChangeBrowserSettings () { Set<AbstractVcs> enabledVcss = new HashSet<>(); for(AbstractVcs vcs: myEditors.keySet()) { ChangeBrowserSettings settings = myEditors.get(vcs).getSettings(); myDateFilter.saveValues(settings); mySettings.put(vcs, settings); if (myEnabledCheckboxes.get(vcs).isSelected()) { enabledVcss... | getSettings |
260,667 | void (@NotNull CompositeChangeBrowserSettings settings) { mySettings = settings; boolean dateFilterInitialized = false; for (AbstractVcs vcs : myEditors.keySet()) { ChangeBrowserSettings vcsSettings = mySettings.get(vcs); ChangesBrowserSettingsEditor editor = myEditors.get(vcs); //noinspection unchecked editor.setSetti... | setSettings |
260,668 | String () { for(ChangesBrowserSettingsEditor<?> editor: myEditors.values()) { String result = editor.validateInput(); if (result != null) return result; } return null; } | validateInput |
260,669 | void () { for(ChangesBrowserSettingsEditor<?> editor: myEditors.values()) { editor.updateEnabledControls(); } } | updateEnabledControls |
260,670 | String () { @NonNls StringBuilder result = new StringBuilder(); result.append("Composite"); for(AbstractVcs vcs: myBaseVcss) { result.append(".").append(vcs.getDisplayName()); } return result.toString(); } | getDimensionServiceKey |
260,671 | List<AnAction> () { return ContainerUtil.append( super.createToolbarActions(), ActionManager.getInstance().getAction("Vcs.RepositoryChangesBrowserToolbar") ); } | createToolbarActions |
260,672 | List<AnAction> () { return ContainerUtil.append( super.createPopupMenuActions(), ActionManager.getInstance().getAction("Vcs.RepositoryChangesBrowserMenu") ); } | createPopupMenuActions |
260,673 | void (final CommittedChangesBrowserUseCase useCase) { myUseCase = useCase; } | setUseCase |
260,674 | Object (@NotNull @NonNls final String dataId) { if (CommittedChangesBrowserUseCase.DATA_KEY.is(dataId)) { return myUseCase; } if (PlatformCoreDataKeys.BGT_DATA_PROVIDER.is(dataId)) { DataProvider superProvider = (DataProvider)super.getData(dataId); VcsTreeModelData selectedData = VcsTreeModelData.selected(myViewer); re... | getData |
260,675 | void (TreeSelectionEvent e) { updateBySelectionChange(); } | valueChanged |
260,676 | void (ComponentEvent e) { myChangesTree.invalidateNodeSizes(); } | componentResized |
260,677 | void () { } | itemsReloaded |
260,678 | void () { updateGrouping(); } | emptyRefresh |
260,679 | void () { final Splitter filterSplitter = new Splitter(false, 0.5f); filterSplitter.setSecondComponent(ScrollPaneFactory.createScrollPane(myChangesTree)); myLeftPanel.add(filterSplitter, BorderLayout.CENTER); final Splitter mainSplitter = new Splitter(false, 0.7f); mainSplitter.setFirstComponent(myLeftPanel); mainSplit... | initSplitters |
260,680 | void (final ChangeListFilteringStrategy strategy) { myFilteringStrategy.addStrategy(strategy.getKey(), strategy); strategy.addChangeListener(myFilterChangeListener); } | addFilter |
260,681 | void () { if (myGroupingStrategy.changedSinceApply()) { ApplicationManager.getApplication().invokeLater(() -> updateModel(), ModalityState.nonModal()); } } | updateGrouping |
260,682 | TreeModel (List<? extends CommittedChangeList> filteredChangeLists) { DefaultMutableTreeNode root = new DefaultMutableTreeNode(); DefaultTreeModel model = new DefaultTreeModel(root); filteredChangeLists = ContainerUtil.sorted(filteredChangeLists, myGroupingStrategy.getComparator()); myGroupingStrategy.beforeStart(); De... | buildTreeModel |
260,683 | void (final String helpId) { myHelpId = helpId; } | setHelpId |
260,684 | StatusText () { return myChangesTree.getEmptyText(); } | getEmptyText |
260,685 | void (JComponent toolBar) { myLeftPanel.add(toolBar, BorderLayout.NORTH); myDetailsView.syncSizeWithToolbar(toolBar); } | setToolBar |
260,686 | void () { myDetailsView.shutdown(); myConnection.disconnect(); mySplitterProportionsData.saveSplitterProportions(this); mySplitterProportionsData.externalizeToDimensionService("CommittedChanges.SplitterProportions"); } | dispose |
260,687 | void (@NotNull List<? extends CommittedChangeList> items, final CommittedChangesBrowserUseCase useCase) { myDetailsView.setUseCase(useCase); myChangeLists = new ArrayList<>(items); myFilteringStrategy.setFilterBase(items); BackgroundTaskUtil.syncPublisher(myProject, ITEMS_RELOADED).itemsReloaded(); updateModel(); } | setItems |
260,688 | void () { TreeState state = TreeState.createOn(myChangesTree, (DefaultMutableTreeNode)myChangesTree.getModel().getRoot()); final List<CommittedChangeList> filteredChangeLists = myFilteringStrategy.filterChangeLists(myChangeLists); myChangesTree.setModel(buildTreeModel(filteredChangeLists)); state.applyTo(myChangesTree)... | updateModel |
260,689 | void (@NotNull ChangeListGroupingStrategy strategy) { myGroupingStrategy = strategy; updateModel(); } | setGroupingStrategy |
260,690 | ChangeListGroupingStrategy () { return myGroupingStrategy; } | getGroupingStrategy |
260,691 | Tree () { return myChangesTree; } | getChangesTree |
260,692 | void () { List<CommittedChangeList> selection = new ArrayList<>(); final TreePath[] selectionPaths = myChangesTree.getSelectionPaths(); if (selectionPaths != null) { for(TreePath path: selectionPaths) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent(); if (node.getUserObject() instance... | updateBySelectionChange |
260,693 | List<Change> (final List<? extends CommittedChangeList> selectedChangeLists, final boolean withMovedTrees) { selectedChangeLists.sort(CommittedChangeListByDateComparator.ASCENDING); List<Change> changes = new ArrayList<>(); for (CommittedChangeList cl : selectedChangeLists) { changes.addAll(withMovedTrees ? cl.getChang... | collectChanges |
260,694 | List<Change> (@NotNull List<? extends Change> changes) { // TODO: further improvements needed // We may want to process collisions more consistent // Possible solution: avoid creating duplicate entries for the same FilePath. No changes in the output should have same beforePath or afterPath. // We may take earliest and ... | zipChanges |
260,695 | List<CommittedChangeList> () { return TreeUtil.collectSelectedObjectsOfType(myChangesTree, CommittedChangeList.class); } | getSelectedChangeLists |
260,696 | void (final ActionGroup group, final List<? extends AnAction> auxiliaryActions) { DefaultActionGroup menuGroup = new DefaultActionGroup(); menuGroup.add(group); for (AnAction action : auxiliaryActions) { menuGroup.add(action); } menuGroup.add(ActionManager.getInstance().getAction(VcsActions.ACTION_COPY_REVISION_NUMBER)... | setTableContextMenu |
260,697 | void (@NotNull CommittedChangesFilterKey key) { final ChangeListFilteringStrategy strategy = myFilteringStrategy.removeStrategy(key); if (strategy != null) { strategy.removeChangeListener(myFilterChangeListener); } myInnerSplitter.remove(key); } | removeFilteringStrategy |
260,698 | boolean (@NotNull ChangeListFilteringStrategy filteringStrategy) { if (myInnerSplitter.canAdd()) { filteringStrategy.addChangeListener(myFilterChangeListener); final CommittedChangesFilterKey key = filteringStrategy.getKey(); myFilteringStrategy.addStrategy(key, filteringStrategy); myFilteringStrategy.setFilterBase(myC... | setFilteringStrategy |
260,699 | ActionToolbar (final Project project, final ActionGroup leadGroup, @Nullable final ActionGroup tailGroup, final List<? extends AnAction> extra) { DefaultActionGroup toolbarGroup = new DefaultActionGroup(); toolbarGroup.add(leadGroup); toolbarGroup.addSeparator(); toolbarGroup.add(new SelectFilteringAction(project, this... | createGroupFilterToolbar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.