Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
262,700 | boolean () { return true; } | showStatistics |
262,701 | SimpleTextAttributes () { return myFilterAttributes == null ? SimpleTextAttributes.SIMPLE_CELL_ATTRIBUTES : myFilterAttributes; } | getAttributes |
262,702 | boolean () { return mySupportsDeletion; } | getSupportsDeletion |
262,703 | void (@NotNull String filePath) { myFilePaths.add(filePath); } | addFilePath |
262,704 | void (boolean groupByPackages, @Nullable Pair<PackageSetBase, NamedScopesHolder> filter, boolean showOnlyFilteredItems) { myFilterAttributes = null; if (containsGroups()) { rebuildGroups(groupByPackages, filter, showOnlyFilteredItems); } else { rebuildFiles(groupByPackages, filter, showOnlyFilteredItems); } } | rebuild |
262,705 | void (boolean groupByPackages, @Nullable Pair<PackageSetBase, NamedScopesHolder> filter, boolean showOnlyFilteredItems) { boolean apply = false; for (int i = 0; i < getChildCount(); i++) { GroupTreeNode childGroup = (GroupTreeNode)getChildAt(i); childGroup.rebuild(groupByPackages, filter, showOnlyFilteredItems); apply ... | rebuildGroups |
262,706 | void (boolean groupByPackages, @Nullable Pair<PackageSetBase, NamedScopesHolder> filter, boolean showOnlyFilteredItems) { for (int i = getChildCount() - 1; i >= 0; i--) { final TreeNode node = getChildAt(i); if (node instanceof Disposable) { Disposer.dispose((Disposable)node); } } removeAllChildren(); if (groupByPackag... | rebuildFiles |
262,707 | void () { Collection<File> files = new LinkedHashSet<>(); for (final String myFilePath : myFilePaths) { files.add(new File(myFilePath)); } GroupByPackages groupByPackages = new GroupByPackages(files); List<File> roots = groupByPackages.getRoots(); addFiles(this, roots, files, groupByPackages, null); } | buildPackages |
262,708 | void (@NotNull AbstractTreeNode parentNode, @NotNull List<? extends File> roots, @NotNull final Collection<? extends File> files, @NotNull GroupByPackages groupByPackages, String parentPath) { roots.sort((file1, file2) -> { boolean containsFile1 = files.contains(file1); boolean containsFile2 = files.contains(file2); if... | addFiles |
262,709 | void (@Nullable Pair<PackageSetBase, NamedScopesHolder> filter, boolean showOnlyFilteredItems) { myFilePaths.sort((path1, path2) -> path1.compareToIgnoreCase(path2)); boolean apply = false; for (final String filePath : myFilePaths) { final FileTreeNode child = new FileTreeNode(filePath, myInvalidAttributes, myProject, ... | buildFiles |
262,710 | boolean () { return myFilePaths.isEmpty(); } | containsGroups |
262,711 | void () { } | dispose |
262,712 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
262,713 | void (@NotNull AnActionEvent e) { final Project project = e.getProject(); boolean showUpdateOptions = isShowOptions(project); LOG.debug("project: " + project + ", show update options: " + showUpdateOptions); if (project == null) { return; } try { FilePath[] roots = getRoots(project, e.getDataContext()); if (roots.lengt... | actionPerformed |
262,714 | void () { super.onSuccess(); AbstractCommonUpdateAction.this.onSuccess(); } | onSuccess |
262,715 | boolean (Project project) { return myActionInfo.showOptions(project); } | isShowOptions |
262,716 | void () { } | onSuccess |
262,717 | boolean (List<? extends UpdateSession> updateSessions) { for (UpdateSession updateSession : updateSessions) { if (updateSession.isCanceled()) { return true; } } return false; } | someSessionWasCanceled |
262,718 | void (final Map<AbstractVcs, Collection<FilePath>> updateEnvToVirtualFiles, final Project project, final String scopeName) { LinkedHashMap<Configurable, AbstractVcs> envToConfMap = createConfigurableToEnvMap(updateEnvToVirtualFiles); LOG.debug("configurables map: " + envToConfMap); if (!envToConfMap.isEmpty()) { Update... | showOptionsDialog |
262,719 | FilePath[] (Project project, @NotNull DataContext context) { List<FilePath> filePaths = myScopeInfo.getRoots(context, myActionInfo); return DescindingFilesFilter.filterDescindingFiles(filterRoots(project, filePaths), project); } | getRoots |
262,720 | void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); Project project = e.getProject(); if (project == null) { presentation.setEnabledAndVisible(false); return; } final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(project); final boolean underVcs = vcsManager.hasAc... | update |
262,721 | boolean (final ProjectLevelVcsManager vcsManager, final ActionInfo actionInfo) { final AbstractVcs[] allActiveVcss = vcsManager.getAllActiveVcss(); for (AbstractVcs activeVcs : allActiveVcss) { if (actionInfo.getEnvironment(activeVcs) != null) return false; } return true; } | supportingVcsesAreEmpty |
262,722 | void () { myUpdatedFiles = UpdatedFiles.create(); myGroupedExceptions.clear(); myUpdateSessions.clear(); ++myUpdateNumber; } | reset |
262,723 | void (@NotNull final ProgressIndicator indicator) { runImpl(); } | run |
262,724 | void () { if (myProject != null) { StoreReloadManager.Companion.getInstance(myProject).blockReloadingProjectOnExternalChanges(); } myProjectLevelVcsManager.startBackgroundVcsOperation(); myBefore = LocalHistory.getInstance().putSystemLabel(myProject, VcsBundle.message("update.label.before.update")); myLocalHistoryActio... | runImpl |
262,725 | UpdateSession (ProgressIndicator progressIndicator, UpdateEnvironment updateEnvironment, Collection<FilePath> files, Ref<SequentialUpdatesContext> refContext) { return updateEnvironment.updateDirectories(files.toArray(new FilePath[0]), myUpdatedFiles, progressIndicator, refContext); } | performUpdate |
262,726 | void (final AbstractVcs vcs, final List<VcsException> exceptionList) { final VcsExceptionsHotFixer fixer = vcs.getVcsExceptionsHotFixer(); if (fixer == null) { putExceptions(null, exceptionList); } else { putExceptions(fixer.groupExceptions(ActionType.update, exceptionList)); } } | gatherExceptions |
262,727 | void (final Map<HotfixData, List<VcsException>> map) { for (Map.Entry<HotfixData, List<VcsException>> entry : map.entrySet()) { putExceptions(entry.getKey(), entry.getValue()); } } | putExceptions |
262,728 | void (final HotfixData key, @NotNull final List<? extends VcsException> list) { if (list.isEmpty()) return; myGroupedExceptions.computeIfAbsent(key, k -> new ArrayList<>()).addAll(list); } | putExceptions |
262,729 | void () { LOG.info("Calling refresh files after update for roots: " + Arrays.toString(myRoots)); RefreshVFsSynchronously.updateAllChanged(myUpdatedFiles); notifyAnnotations(); } | doVfsRefresh |
262,730 | void () { final VcsAnnotationRefresher refresher = BackgroundTaskUtil.syncPublisher(myProject, VcsAnnotationRefresher.LOCAL_CHANGES_CHANGED); UpdateFilesHelper.iterateFileGroupFilesDeletedOnServerFirst(myUpdatedFiles, new UpdateFilesHelper.Callback() { @Override public void onFile(String filePath, String groupId) { ref... | notifyAnnotations |
262,731 | void (String filePath, String groupId) { refresher.dirty(filePath); } | onFile |
262,732 | Notification (@NotNull UpdateInfoTree tree, boolean someSessionWasCancelled, @NotNull List<? extends UpdateSession> updateSessions) { int allFilesCount = getUpdatedFilesCount(); String additionalContent = nullize(updateSessions.stream(). map(UpdateSession::getAdditionalNotificationContent). filter(nonNull()). collect(C... | prepareNotification |
262,733 | int () { return myUpdatedFiles.getTopLevelGroups().stream().mapToInt(Updater::getFilesCount).sum(); } | getUpdatedFilesCount |
262,734 | int (@NotNull FileGroup group) { return group.getFiles().size() + group.getChildren().stream().mapToInt(g -> getFilesCount(g)).sum(); } | getFilesCount |
262,735 | String (@NotNull UpdateInfoTree tree) { String scopeText = null; NamedScope scopeFilter = tree.getFilterScope(); if (scopeFilter != null) { int filteredFiles = tree.getFilteredFilesCount(); String filterName = scopeFilter.getPresentableName(); if (filteredFiles == 0) { scopeText = VcsBundle.message("update.file.name.wa... | prepareScopeUpdatedText |
262,736 | void () { onSuccessImpl(false); } | onSuccess |
262,737 | void (final boolean wasCanceled) { if (!myProject.isOpen() || myProject.isDisposed()) { StoreReloadManager.Companion.getInstance(myProject).unblockReloadingProjectOnExternalChanges(); LocalHistory.getInstance().putSystemLabel(myProject, VcsBundle.message("local.history.update.from.vcs")); // TODO check why this label i... | onSuccessImpl |
262,738 | void (final String filePath, final String groupId) { @NonNls final String path = VfsUtilCore.pathToUrl(filePath.replace(File.separatorChar, '/')); final VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(path); if (file != null) { files.add(file); } } | onFile |
262,739 | void () { gatherContextInterruptedMessages(); AbstractVcsHelper.getInstance(myProject).showErrors(myGroupedExceptions, VcsBundle.message("message.title.vcs.update.errors", myActionName)); } | showContextInterruptedError |
262,740 | void () { for (Map.Entry<AbstractVcs, SequentialUpdatesContext> entry : myContextInfo.entrySet()) { final SequentialUpdatesContext context = entry.getValue(); if ((context == null) || (!context.shouldFail())) continue; final VcsException exception = new VcsException(context.getMessageWhenInterruptedBeforeStart()); gath... | gatherContextInterruptedMessages |
262,741 | UpdateInfoTree (final boolean willBeContinued, final boolean wasCanceled) { RestoreUpdateTree restoreUpdateTree = RestoreUpdateTree.getInstance(myProject); restoreUpdateTree.registerUpdateInformation(myUpdatedFiles, myActionInfo); final String text = myActionName + ((willBeContinued || (myUpdateNumber > 1)) ? ("#" + my... | showUpdateTree |
262,742 | boolean (final Set<? extends AbstractVcs> abstractVcses) { if (myActionInfo.canGroupByChangelist()) { for (AbstractVcs vcs : abstractVcses) { if (vcs.getCachingCommittedChangesProvider() != null) { return true; } } } return false; } | canGroupByChangelist |
262,743 | void () { onSuccessImpl(true); } | onCancel |
262,744 | boolean (@NotNull Collection<? extends AbstractVcs> vcss) { return ContainerUtil.all(vcss, vcs -> { UpdateEnvironment environment = vcs.getUpdateEnvironment(); return environment != null && environment.hasCustomNotification(); }); } | showsCustomNotification |
262,745 | String () { return "com.intellij.openapi.vcs.update.UpdateOrStatusOptionsDialog" + getActionNameForDimensions(); } | getDimensionServiceKey |
262,746 | void (Configurable configurable, String constraint) { myConfigurables.add(configurable); myMainPanel.add(Objects.requireNonNull(configurable.createComponent()), constraint); configurable.reset(); } | addComponent |
262,747 | void () { for (Configurable configurable : myConfigurables) { try { configurable.apply(); } catch (CancelledConfigurationException e) { return; } catch (ConfigurationException e) { Messages.showErrorDialog(myProject, VcsBundle.message("message.text.cannot.save.settings", e.getLocalizedMessage()), getTitle()); return; }... | doOKAction |
262,748 | void () { if (getCancelAction().isEnabled()) { for (Configurable configurable : myConfigurables) { configurable.cancel(); } } super.doCancelAction(); } | doCancelAction |
262,749 | boolean () { return false; } | shouldSaveOptionsOnCancel |
262,750 | JComponent () { return myMainPanel; } | createCenterPanel |
262,751 | Action () { return myHelpAction; } | getHelpAction |
262,752 | String () { String helpTopic = null; if (myMainPanel instanceof JTabbedPane) { int idx = ((JTabbedPane)myMainPanel).getSelectedIndex(); if (0 <= idx && idx < myConfigurables.size()) { helpTopic = myConfigurables.get(idx).getHelpTopic(); } } else { helpTopic = myConfigurables.get(0).getHelpTopic(); } return helpTopic; } | helpTopic |
262,753 | boolean () { return super.isEnabled() && helpTopic() != null; } | isEnabled |
262,754 | void (ActionEvent e) { HelpManager.getInstance().invokeHelp(helpTopic()); } | actionPerformed |
262,755 | Icon (boolean expanded) { if (myFile.isDirectory()) { return PlatformIcons.FOLDER_ICON; } return FileTypeManager.getInstance().getFileTypeByFileName(myFile.getName()).getIcon(); } | getIcon |
262,756 | boolean (@Nullable Pair<PackageSetBase, NamedScopesHolder> filter, boolean showOnlyFilteredItems) { try { VirtualFilePointer filePointer = getFilePointer(); if (!filePointer.isValid()) { return false; } VirtualFile file = filePointer.getFile(); if (file != null && file.isValid() && filter != null && filter.first.contai... | acceptFilter |
262,757 | Collection<VirtualFile> () { VirtualFile virtualFile = getFilePointer().getFile(); if (virtualFile == null) return EMPTY_VIRTUAL_FILE_ARRAY; return Collections.singleton(virtualFile); } | getVirtualFiles |
262,758 | Collection<File> () { if (getFilePointer().getFile() == null) { return Collections.singleton(myFile); } return EMPTY_FILE_ARRAY; } | getFiles |
262,759 | int () { return 1; } | getItemsCount |
262,760 | boolean () { return false; } | showStatistics |
262,761 | boolean () { return true; } | filterRootsBeforeAction |
262,762 | void (final UpdatedFiles updatedFiles, final Callback callback) { final FileGroup changedOnServer = updatedFiles.getGroupById(FileGroup.CHANGED_ON_SERVER_ID); if (changedOnServer != null) { final List<FileGroup> children = changedOnServer.getChildren(); for (FileGroup child : children) { if (FileGroup.REMOVED_FROM_REPO... | iterateFileGroupFilesDeletedOnServerFirst |
262,763 | void (final FileGroup group, final Callback callback) { for (String file : group.getFiles()) { callback.onFile(file, group.getId()); } } | iterateGroup |
262,764 | void (final UpdatedFiles updatedFiles, final Callback callback) { final List<FileGroup> groups = updatedFiles.getTopLevelGroups(); for (FileGroup group : groups) { iterateGroup(group, callback); // for changed on server for (FileGroup childGroup : group.getChildren()) { iterateGroup(childGroup, callback); } } } | iterateFileGroupFiles |
262,765 | void (final FileGroup group, final Consumer<? super Couple<String>> callback) { for (FileGroup.UpdatedFile updatedFile : group.getUpdatedFiles()) { callback.consume(Couple.of(updatedFile.getPath(), updatedFile.getVcsName())); } } | iterateGroup |
262,766 | void (final UpdatedFiles updatedFiles, final Consumer<? super Couple<String>> callback) { final List<FileGroup> groups = updatedFiles.getTopLevelGroups(); for (FileGroup group : groups) { iterateGroup(group, callback); // for changed on server for (FileGroup childGroup : group.getChildren()) { iterateGroup(childGroup, ... | iterateAffectedFiles |
262,767 | boolean () { return false; } | filterRootsBeforeAction |
262,768 | String () { return myName; } | getName |
262,769 | String () { return getFilePointer().getPresentableUrl(); } | getFilePath |
262,770 | void (VirtualFilePointer @NotNull [] pointers) { if (!getFilePointer().isValid()) { AbstractTreeNode parent = (AbstractTreeNode)getParent(); if (parent != null && parent.getSupportsDeletion()) { getTreeModel().removeNodeFromParent(this); } else { if (getTree() != null) { getTree().repaint(); } } } } | validityChanged |
262,771 | void (final Object userObject) { final Object oldObject = getUserObject(); try { super.setUserObject(userObject); } finally { if (oldObject instanceof VirtualFilePointer pointer) { Disposer.dispose((Disposable)pointer); } } } | setUserObject |
262,772 | VirtualFilePointer () { return (VirtualFilePointer)getUserObject(); } | getFilePointer |
262,773 | SimpleTextAttributes () { if (!getFilePointer().isValid()) { return myInvalidAttributes; } VirtualFile file = getFilePointer().getFile(); FileStatusManager fileStatusManager = FileStatusManager.getInstance(myProject); FileStatus status = fileStatusManager.getStatus(file); SimpleTextAttributes attributes = getAttributes... | getAttributes |
262,774 | SimpleTextAttributes (@NotNull FileStatus status) { Color color = status.getColor(); if (color == null) color = UIUtil.getListForeground(); if (!myFileStatusToAttributeMap.containsKey(status)) { myFileStatusToAttributeMap.put(status, new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, color)); } return myFileSta... | getAttributesFor |
262,775 | boolean () { AbstractTreeNode parent = (AbstractTreeNode)getParent(); return parent != null && parent.getSupportsDeletion(); } | getSupportsDeletion |
262,776 | void () { } | dispose |
262,777 | Project () { return myProject; } | getProject |
262,778 | void (@NotNull Element element) { if (myUpdatedFiles == null) { return; } element.setAttribute(DATE_ATTR, myDate); element.setAttribute(ACTION_INFO_ATTRIBUTE_NAME, myActionInfo.getActionName()); Element filesElement = new Element(FILE_INFO_ELEMENTS); myUpdatedFiles.writeExternal(filesElement); element.addContent(filesE... | writeExternal |
262,779 | void (@NotNull Element element) { myDate = element.getAttributeValue(DATE_ATTR); Element fileInfoElement = element.getChild(FILE_INFO_ELEMENTS); if (fileInfoElement == null) { return; } String actionInfoName = element.getAttributeValue(ACTION_INFO_ATTRIBUTE_NAME); myActionInfo = getActionInfoByName(actionInfoName); if ... | readExternal |
262,780 | ActionInfo (String actionInfoName) { if (ActionInfo.UPDATE.getActionName().equals(actionInfoName)) return ActionInfo.UPDATE; if (ActionInfo.STATUS.getActionName().equals(actionInfoName)) return ActionInfo.STATUS; return null; } | getActionInfoByName |
262,781 | UpdatedFiles () { return myUpdatedFiles; } | getFileInformation |
262,782 | String () { return VcsBundle.message("toolwindow.title.update.project", myDate); } | getCaption |
262,783 | boolean () { return myUpdatedFiles == null || myUpdatedFiles.isEmpty(); } | isEmpty |
262,784 | ActionInfo () { return myActionInfo; } | getActionInfo |
262,785 | boolean () { return false; } | filterRootsBeforeAction |
262,786 | boolean (Project project) { return ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.UPDATE).getValue(); } | showOptions |
262,787 | UpdateEnvironment (AbstractVcs vcs) { return vcs.getUpdateEnvironment(); } | getEnvironment |
262,788 | String () { return VcsBundle.message("action.name.update"); } | getActionName |
262,789 | UpdateOrStatusOptionsDialog (Project project, LinkedHashMap<Configurable, AbstractVcs> envToConfMap, String scopeName) { return new UpdateOrStatusOptionsDialog(project, VcsBundle.message("action.display.name.update.scope", scopeName), envToConfMap) { @Override @NlsSafe protected String getActionNameForDimensions() { re... | createOptionsDialog |
262,790 | String () { return "update-v2"; } | getActionNameForDimensions |
262,791 | String () { return VcsBundle.message("update.checkbox.don.t.show.again"); } | getDoNotShowMessage |
262,792 | boolean () { return ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.UPDATE).getValue(); } | isToBeShown |
262,793 | void (boolean value, boolean onOk) { if (onOk) { ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.UPDATE).setValue(value); } } | setToBeShown |
262,794 | String (String scopeName) { return VcsBundle.message("action.name.update.scope", scopeName); } | getActionName |
262,795 | String (FileGroup fileGroup) { return fileGroup.getUpdateName(); } | getGroupName |
262,796 | boolean () { return true; } | canGroupByChangelist |
262,797 | boolean () { return false; } | canChangeFileStatus |
262,798 | boolean (Project project) { return ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.STATUS).getValue(); } | showOptions |
262,799 | UpdateEnvironment (AbstractVcs vcs) { return vcs.getStatusEnvironment(); } | getEnvironment |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.