Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
263,100 | Element () { Element element = new Element("state"); ProjectLevelVcsManagerSerialization.writeExternalUtil(element, myOptionsAndConfirmations); if (myHaveLegacyVcsConfiguration && !myProject.isDefault()) { element.setAttribute(SETTINGS_EDITED_MANUALLY, "true"); } return element; } | getState |
263,101 | void (@NotNull Element state) { ProjectLevelVcsManagerSerialization.readExternalUtil(state, myOptionsAndConfirmations); final Attribute attribute = state.getAttribute(SETTINGS_EDITED_MANUALLY); if (attribute != null) { try { myHaveLegacyVcsConfiguration = attribute.getBooleanValue(); } catch (DataConversionException ig... | loadState |
263,102 | VcsShowConfirmationOption (@NotNull VcsConfiguration.StandardConfirmation option, AbstractVcs vcs) { final PersistentVcsShowConfirmationOption result = getConfirmation(option); if (vcs != null) { result.addApplicableVcs(vcs); } return result; } | getStandardConfirmation |
263,103 | List<PersistentVcsShowConfirmationOption> () { return myOptionsAndConfirmations.getAllConfirmations(); } | getAllConfirmations |
263,104 | PersistentVcsShowConfirmationOption (VcsConfiguration.StandardConfirmation option) { return myOptionsAndConfirmations.getConfirmation(option); } | getConfirmation |
263,105 | void () { myBackgroundOperationCounter.incrementAndGet(); } | startBackgroundVcsOperation |
263,106 | void () { // in fact, the condition is "should not be called under ApplicationManager.invokeLater() and similar" ApplicationManager.getApplication().assertIsNonDispatchThread(); int counter = myBackgroundOperationCounter.getAndDecrement(); LOG.assertTrue(counter > 0, "myBackgroundOperationCounter was " + counter + " wh... | stopBackgroundVcsOperation |
263,107 | boolean () { return myBackgroundOperationCounter.get() > 0; } | isBackgroundVcsOperationRunning |
263,108 | List<VirtualFile> (final AbstractVcs vcs) { return myMappings.getMappingsAsFilesUnderVcs(vcs); } | getRootsUnderVcsWithoutFiltering |
263,109 | List<VirtualFile> (@NotNull AbstractVcs vcs) { return MappingsToRoots.getDetailedVcsMappings(myProject, myMappings, vcs); } | getDetailedVcsMappings |
263,110 | VirtualFile[] () { List<VirtualFile> vFiles = new ArrayList<>(); final AbstractVcs[] vcses = myMappings.getActiveVcses(); for (AbstractVcs vcs : vcses) { Collections.addAll(vFiles, getRootsUnderVcs(vcs)); } return VfsUtilCore.toVirtualFileArray(vFiles); } | getAllVersionedRoots |
263,111 | String () { AbstractVcs singleVcs = getSingleVCS(); return singleVcs != null ? singleVcs.getShortNameWithMnemonic() : VcsBundle.message("vcs.generic.name.with.mnemonic"); } | getConsolidatedVcsName |
263,112 | void () { BackgroundTaskUtil.syncPublisher(myProject, VCS_CONFIGURATION_CHANGED).directoryMappingChanged(); } | notifyDirectoryMappingChanged |
263,113 | boolean () { return !myHaveLegacyVcsConfiguration && !myMappingsLoaded; } | needAutodetectMappings |
263,114 | VcsRootChecker (@NotNull AbstractVcs vcs) { for (VcsRootChecker checker : VcsRootChecker.EXTENSION_POINT_NAME.getIterable()) { if (checker.getSupportedVcs().equals(vcs.getKeyInstanceMethod())) { return checker; } } return new DefaultVcsRootChecker(vcs, getDescriptor(vcs.getName())); } | getRootChecker |
263,115 | void () { if (myProject.isOpen() && !myProject.isDisposed()) { myMappings.notifyMappingsChanged(); } } | fireDirectoryMappingsChanged |
263,116 | void (@NotNull VcsInitObject vcsInitObject, @NotNull Runnable runnable) { VcsInitialization.Companion.getInstance(myProject).add(vcsInitObject, runnable); } | addInitializationRequest |
263,117 | void (@NotNull Runnable runnable) { addInitializationRequest(VcsInitObject.AFTER_COMMON, runnable); } | runAfterInitialization |
263,118 | boolean (@Nullable VirtualFile vf) { if (vf == null) { return false; } return ReadAction.compute(() -> { boolean isUnderProject = isFileInBaseDir(vf) || isInDirectoryBasedRoot(vf) || hasExplicitMapping(vf) || myExcludedIndex.isInContent(vf) || (!Registry.is("ide.hide.excluded.files") && myExcludedIndex.isExcludedFile(v... | isFileInContent |
263,119 | boolean (@NotNull VirtualFile vf) { return ReadAction.compute(() -> { if (myProject.isDisposed() || myProject.isDefault()) return false; if (Registry.is("ide.hide.excluded.files")) { return myExcludedIndex.isExcludedFile(vf); } else { return myExcludedIndex.isUnderIgnored(vf); } }); } | isIgnored |
263,120 | boolean (@NotNull FilePath filePath) { return ReadAction.compute(() -> { if (myProject.isDisposed() || myProject.isDefault()) return false; if (Registry.is("ide.hide.excluded.files")) { VirtualFile vf = VcsImplUtil.findValidParentAccurately(filePath); return vf != null && myExcludedIndex.isExcludedFile(vf); } else { //... | isIgnored |
263,121 | boolean (@NotNull VirtualFile file) { if (ProjectKt.isDirectoryBased(myProject)) { return ProjectKt.getStateStore(myProject).isProjectFile(file); } return false; } | isInDirectoryBasedRoot |
263,122 | boolean (@NotNull VirtualFile file) { VirtualFile baseDir = myProject.getBaseDir(); if (baseDir == null) { return false; } if (file.isDirectory()) { return baseDir.equals(file); } else { return baseDir.equals(file.getParent()); } } | isFileInBaseDir |
263,123 | boolean (@NotNull VirtualFile vFile) { final VcsDirectoryMapping mapping = getDirectoryMappingFor(vFile); return mapping != null && !mapping.isDefaultMapping(); } | hasExplicitMapping |
263,124 | VcsHistoryCache () { return VcsCacheManager.getInstance(myProject).getVcsHistoryCache(); } | getVcsHistoryCache |
263,125 | ContentRevisionCache () { return VcsCacheManager.getInstance(myProject).getContentRevisionCache(); } | getContentRevisionCache |
263,126 | void () { VcsInitialization.Companion.getInstance(myProject).waitFinished(); } | waitForInitialized |
263,127 | void () { showConsole(null); } | showConsole |
263,128 | void (@Nullable Runnable then) { VcsConsoleTabService.getInstance(myProject).showConsoleTab(true, null); } | showConsole |
263,129 | void () { VcsConsoleTabService.getInstance(myProject).showConsoleTabAndScrollToTheEnd(); } | scrollConsoleToTheEnd |
263,130 | boolean () { return VcsConsoleTabService.getInstance(myProject).isConsoleVisible(); } | isConsoleVisible |
263,131 | boolean (Object o) { if (o == null || getClass() != o.getClass()) return false; return Arrays.equals(myObjects, ((ActionKey)o).myObjects); } | equals |
263,132 | int () { return Arrays.hashCode(myObjects); } | hashCode |
263,133 | String () { return getClass() + " - " + Arrays.toString(myObjects); } | toString |
263,134 | void (@NotNull Project project) { project.getService(VcsDirectoryMappingStorage.class); // read vcs.xml getInstanceImpl(project).myMappings.activateActiveVcses(); } | runActivity |
263,135 | int () { return VcsInitObject.MAPPINGS.getOrder(); } | getOrder |
263,136 | void (@NotNull Project project) { getInstanceImpl(project).updateMappedVcsesImmediately(); } | onProjectTrusted |
263,137 | boolean () { return myOptions.getOptionValue(myId); } | getValue |
263,138 | void (boolean value) { myOptions.setOptionValue(myId, value); } | setValue |
263,139 | void () { myAlarm.cancelAllRequests(); myAlarm.addRequest(myModifier, 0); } | ping |
263,140 | void () { myModifier.run(); } | pingImmediately |
263,141 | boolean () { return myOptions.getOptionValue(myOption.getId()); } | getValue |
263,142 | void (boolean value) { myOptions.setOptionValue(myOption.getId(), value); } | setValue |
263,143 | AllVcsesI (@NotNull Project project) { return project.getService(AllVcsesI.class); } | getInstance |
263,144 | void (@NotNull AbstractVcs vcs) { synchronized (myLock) { String name = vcs.getName(); if (myVcses.containsKey(name)) { LOG.error(String.format("vcs is already registered: %s", vcs), new Throwable()); return; } if (myExtensions.containsKey(name)) { LOG.error(String.format("can't override vcs from EP. vcs: %s, ep: %s", ... | registerManually |
263,145 | void (@NotNull AbstractVcs vcs) { synchronized (myLock) { String name = vcs.getName(); if (!myVcses.containsKey(name)) { LOG.error(String.format("vcs is not registered: %s", vcs), new Throwable()); return; } myVcses.remove(name); } unregisterVcs(vcs); ProjectLevelVcsManagerImpl.getInstanceImpl(myProject).updateMappedVc... | unregisterManually |
263,146 | AbstractVcs (@Nullable String name) { if (StringUtil.isEmpty(name)) { return null; } VcsEP ep; synchronized (myLock) { AbstractVcs vcs = myVcses.get(name); if (vcs != null) { return vcs; } ep = myExtensions.get(name); } if (ep == null) { ObsoleteVcs obsoleteVcs = ObsoleteVcs.findByName(name); if (obsoleteVcs != null &&... | getByName |
263,147 | VcsDescriptor (String name) { final VcsEP ep; synchronized (myLock) { ep = myExtensions.get(name); } return ep == null ? null : ep.createDescriptor(); } | getDescriptor |
263,148 | void () { List<AbstractVcs> vcses; synchronized (myLock) { vcses = new ArrayList<>(myVcses.values()); myVcses.clear(); } for (AbstractVcs vcs : vcses) { unregisterVcs(vcs); } } | dispose |
263,149 | void (@NotNull AbstractVcs vcs) { try { vcs.loadSettings(); vcs.doStart(); vcs.getProvidedStatuses(); } catch (VcsException e) { LOG.warn(e); } } | registerVcs |
263,150 | void (@NotNull AbstractVcs vcs) { try { vcs.doShutdown(); } catch (VcsException e) { LOG.warn(e); } } | unregisterVcs |
263,151 | boolean () { synchronized (myLock) { return myExtensions.isEmpty(); } } | isEmpty |
263,152 | VcsDescriptor[] () { Collection<VcsEP> eps; synchronized (myLock) { eps = new ArrayList<>(myExtensions.values()); } List<VcsDescriptor> result = ContainerUtil.sorted(ContainerUtil.map(eps, ep -> ep.createDescriptor()), Comparator.comparing(VcsDescriptor::getName, String::compareTo)); return result.toArray(new VcsDescri... | getAll |
263,153 | AbstractVcs[] () { List<String> names; synchronized (myLock) { names = new ArrayList<>(myExtensions.keySet()); } names.sort(String::compareTo); return ContainerUtil.mapNotNull(names, this::getByName) .toArray(new AbstractVcs[0]); } | getSupportedVcses |
263,154 | void (@NotNull VcsEP extension, @NotNull PluginDescriptor pluginDescriptor) { AbstractVcs oldVcs; synchronized (myLock) { String name = extension.name; VcsEP oldEp = myExtensions.put(name, extension); if (oldEp != null) { LOG.error(String.format("registering duplicated EP. name: %s, old: %s, new: %s", name, oldEp.vcsCl... | extensionAdded |
263,155 | void (@NotNull VcsEP extension, @NotNull PluginDescriptor pluginDescriptor) { AbstractVcs oldVcs; synchronized (myLock) { String name = extension.name; oldVcs = myVcses.get(name); if (oldVcs != null) { myVcses.remove(name); } boolean wasRemoved = myExtensions.remove(name, extension); if (!wasRemoved) { LOG.error(String... | extensionRemoved |
263,156 | ObsoleteVcs (@NotNull String name) { return ContainerUtil.find(values(), vcs -> vcs.vcsName.equals(name)); } | findByName |
263,157 | void (@NotNull ObsoleteVcs vcs) { String message = VcsBundle.message("impl.notification.content.plugin.was.unbundled.needs.to.be.installed.manually", vcs); Notification notification = IMPORTANT_ERROR_NOTIFICATION.createNotification(message, NotificationType.WARNING) .setDisplayId(VcsNotificationIdsHolder.OBSOLETE_PLUGI... | proposeToInstallPlugin |
263,158 | void (@NotNull ObsoleteVcs vcs) { new Task.Backgroundable(myProject, VcsBundle.message("impl.progress.title.installing.plugin")) { @RequiresBackgroundThread @Override public void run(@NotNull ProgressIndicator indicator) { try { PluginNode descriptor = MarketplaceRequests.getInstance().getLastCompatiblePluginUpdate(vcs... | installPlugin |
263,159 | void (@NotNull ProgressIndicator indicator) { try { PluginNode descriptor = MarketplaceRequests.getInstance().getLastCompatiblePluginUpdate(vcs.pluginId, null, indicator); if (descriptor != null) { PluginDownloader downloader = PluginDownloader.createDownloader(descriptor); if (downloader.prepareToInstall(indicator)) {... | run |
263,160 | void (@NotNull ObsoleteVcs vcs, @NotNull @NlsContexts.NotificationContent String message) { String title = VcsBundle.message("impl.notification.title.failed.to.install.plugin"); Notification notification = IMPORTANT_ERROR_NOTIFICATION .createNotification(title, message, NotificationType.ERROR) .setDisplayId(VcsNotifica... | showErrorNotification |
263,161 | List<VirtualFile> (@NotNull Project project, @NotNull NewMappings newMappings, @NotNull AbstractVcs vcs) { // same as above, but no compression List<VirtualFile> roots = new ArrayList<>(newMappings.getMappingsAsFilesUnderVcs(vcs)); Collection<VirtualFile> modules = DefaultVcsRootPolicy.getInstance(project).getDefaultVc... | getDetailedVcsMappings |
263,162 | Value () { return myOptions.getConfirmationValue(myConfirmation.getId()); } | getValue |
263,163 | void (Value value) { myOptions.setConfirmationValue(myConfirmation.getId(), value); } | setValue |
263,164 | boolean () { return true; } | isPersistent |
263,165 | void () { synchronized (LOCK) { myDisposed = true; myLfs.removeWatchedRoots(myWatches); myWatches = Collections.emptySet(); } } | dispose |
263,166 | void () { synchronized (LOCK) { if (myDisposed) return; if (!myProject.isInitialized()) return; Set<String> newWatchedRoots = CollectionFactory.createFilePathSet(); for (VcsDirectoryMapping mapping : myNewMappings.getDirectoryMappings()) { // <Project> mappings are ignored because they should already be watched by the ... | run |
263,167 | void (VirtualFilePointer @NotNull [] pointers) { scheduleMappedRootsUpdate(); } | validityChanged |
263,168 | void (FileWatchRequestsManager fileWatchRequestsManager) { assert ApplicationManager.getApplication().isUnitTestMode(); myFileWatchRequestsManager = fileWatchRequestsManager; } | setFileWatchRequestsManager |
263,169 | boolean () { return !myActiveVcses.isEmpty(); } | hasActiveVcss |
263,170 | boolean () { return myActivated; } | isActivated |
263,171 | void () { synchronized (myUpdateLock) { if (myActivated) return; myActivated = true; LOG.debug("activated"); } updateActiveVcses(true); updateMappedRoots(true); } | activateActiveVcses |
263,172 | boolean (boolean forceFireEvent) { MyVcsActivator activator = ReadAction.compute(() -> { synchronized (myUpdateLock) { return myActivated ? createVcsActivator() : null; } }); if (activator != null) { boolean wasChanged = activator.activate(); if (forceFireEvent || wasChanged) { BackgroundTaskUtil.syncPublisher(myProjec... | updateActiveVcses |
263,173 | void (@NotNull String path, @Nullable String activeVcsName) { if (LOG.isDebugEnabled()) { LOG.debug("setMapping path = '" + path + "' vcs = " + activeVcsName, new Throwable()); } final VcsDirectoryMapping newMapping = new VcsDirectoryMapping(path, activeVcsName); List<VcsDirectoryMapping> newMappings = new ArrayList<>(... | setMapping |
263,174 | void () { myRootUpdateQueue.flush(); } | waitMappedRootsUpdate |
263,175 | void (@NotNull Disposable disposable) { myRootUpdateQueue.setPassThrough(false); myRootUpdateQueue.suspend(); Disposer.register(disposable, () -> { myRootUpdateQueue.setPassThrough(false); myRootUpdateQueue.resume(); }); } | freezeMappedRootsUpdate |
263,176 | void () { LOG.debug("updateMappingsImmediately"); if (!updateActiveVcses(false)) return; synchronized (myUpdateLock) { Disposer.dispose(myFilePointerDisposable); myFilePointerDisposable = Disposer.newDisposable(); myMappedRoots = Collections.emptyList(); myMappedRootsMapping = new RootMapping(Collections.emptyList()); ... | updateMappedVcsesImmediately |
263,177 | void () { myRootUpdateQueue.queue(new DisposableUpdate(this, "update") { @Override public void doRun() { updateMappedRoots(true); } }); } | scheduleMappedRootsUpdate |
263,178 | void () { updateMappedRoots(true); } | doRun |
263,179 | void (@NotNull List<VcsDirectoryMapping> mappings) { myRootUpdateQueue.cancelAllUpdates(); List<VcsDirectoryMapping> newMappings = List.copyOf(ContainerUtil.sorted(removeDuplicates(mappings), MAPPINGS_COMPARATOR)); synchronized (myUpdateLock) { boolean mappingsChanged = !myMappings.equals(newMappings); if (!mappingsCha... | updateVcsMappings |
263,180 | void (boolean fireMappingsChangedEvent) { myRootUpdateQueue.cancelAllUpdates(); if (!myActivated) return; LOG.debug("updateMappedRoots"); List<VcsDirectoryMapping> mappings = myMappings; Mappings newMappedRoots = collectMappedRoots(mappings, null); setNewMappedRoots(mappings, newMappedRoots, fireMappingsChangedEvent); ... | updateMappedRoots |
263,181 | void () { if (!myActivated) return; LOG.debug("updateMappedRootsFast"); List<VcsDirectoryMapping> mappings; List<MappedRoot> mappedRoots; synchronized (myUpdateLock) { mappings = myMappings; mappedRoots = myMappedRoots; } Mappings newMappedRoots = collectMappedRoots(mappings, mappedRoots); setNewMappedRoots(mappings, n... | updateMappedRootsFast |
263,182 | void (@NotNull List<VcsDirectoryMapping> mappings, @NotNull Mappings newMappedRoots, boolean fireMappingsChangedEvent) { Map<VirtualFile, @NlsSafe String> newMappedRootNames = buildMappingShortNameMap(myProject, newMappedRoots.mappedRoots); boolean mappedRootsChanged; synchronized (myUpdateLock) { if (myMappings != map... | setNewMappedRoots |
263,183 | void () { ApplicationManager.getApplication().invokeLater(() -> { ProjectFrameHelper frame = WindowManagerEx.getInstanceEx().getFrameHelper(myProject); if (frame != null) { // GitToolbarWidgetFactory handles update in a new UI if (ExperimentalUI.isNewUI()) { frame.rootPane.updateMainMenuActions(); } else { frame.update... | refreshMainMenu |
263,184 | List<VcsDirectoryMapping> (@NotNull List<VcsDirectoryMapping> mappings) { List<VcsDirectoryMapping> newMapping = new ArrayList<>(); Set<String> paths = new HashSet<>(); for (VcsDirectoryMapping mapping : ContainerUtil.reverse(mappings)) { if (paths.add(mapping.getDirectory())) { newMapping.add(mapping); } } return newM... | removeDuplicates |
263,185 | Mappings (@NotNull List<VcsDirectoryMapping> mappings, @Nullable List<MappedRoot> reuseMappedRoots) { Map<VirtualFile, MappedRoot> mappedRoots = new HashMap<>(); Disposable pointerDisposable = Disposer.newDisposable(); if (!TrustedProjects.isTrusted(myProject)) { return new Mappings(Collections.emptyList(), pointerDisp... | collectMappedRoots |
263,186 | MappedRoot (@NotNull VcsDirectoryMapping mapping, @NotNull Disposable pointerDisposable) { AbstractVcs vcs = getMappingsVcs(mapping); String rootPath = mapping.getDirectory(); return ReadAction.compute(() -> { VirtualFilePointerManager.getInstance().create(VfsUtilCore.pathToUrl(rootPath), pointerDisposable, myFilePoint... | findDirectMappingFor |
263,187 | List<MappedRoot> (@NotNull VcsDirectoryMapping mapping, @NotNull Set<VirtualFile> directMappingDirs, @NotNull Disposable pointerDisposable) { AbstractVcs vcs = getMappingsVcs(mapping); if (vcs == null) { return Collections.emptyList(); } Collection<VirtualFile> defaultRoots = detectDefaultRootsFor(vcs, DefaultVcsRootPo... | findDefaultMappingsFor |
263,188 | List<MappedRoot> (@NotNull VcsDirectoryMapping mapping, @NotNull List<MappedRoot> oldMappedRoots, @NotNull Disposable pointerDisposable) { // Pretend that mappings did not change at first, and "<Project>" mappings has detected all the roots that were used before. // This prevents such roots from being temporally unregi... | reuseDefaultMappingsFrom |
263,189 | boolean (@Nullable AbstractVcs vcs, @NotNull VirtualFile vcsRoot) { try { if (vcs == null) return false; VcsRootChecker rootChecker = myVcsManager.getRootChecker(vcs); return rootChecker.validateRoot(vcsRoot); } catch (ProcessCanceledException e) { throw e; } catch (Throwable e) { LOG.error(e); return false; } } | checkMappedRoot |
263,190 | Collection<VirtualFile> (@NotNull AbstractVcs vcs, @NotNull Collection<VirtualFile> projectRoots, @NotNull Set<VirtualFile> mappedDirs) { try { if (vcs.needsLegacyDefaultMappings()) return projectRoots; VcsRootChecker rootChecker = myVcsManager.getRootChecker(vcs); Collection<VirtualFile> checkerFiles = rootChecker.det... | detectDefaultRootsFor |
263,191 | void () { BackgroundTaskUtil.syncPublisher(myProject, ProjectLevelVcsManager.VCS_CONFIGURATION_CHANGED).directoryMappingChanged(); myFileWatchRequestsManager.ping(); } | notifyMappingsChanged |
263,192 | void () { for (VcsDirectoryMapping mapping : myMappings) { String path = mapping.isDefaultMapping() ? "<Project>" : mapping.getDirectory(); String vcs = mapping.getVcs(); LOG.info(String.format("VCS Root: [%s] - [%s]", vcs, path)); } } | dumpMappingsToLog |
263,193 | void () { if (LOG.isDebugEnabled()) { for (MappedRoot root : myMappedRoots) { LOG.debug(String.format("Mapped Root: [%s] - [%s]", root.vcs, root.root.getPath())); } } else if (haveDefaultMapping() != null) { LOG.info("Mapped Roots: " + myMappedRoots.size()); } } | dumpMappedRootsToLog |
263,194 | void (@NotNull List<VcsDirectoryMapping> items) { if (LOG.isDebugEnabled()) { LOG.debug("setDirectoryMappings, size: " + items.size(), new Throwable()); } updateVcsMappings(items); } | setDirectoryMappings |
263,195 | List<VirtualFile> (@NotNull AbstractVcs vcs) { return ContainerUtil.mapNotNull(myMappedRoots, root -> { return vcs.equals(root.vcs) ? root.root : null; }); } | getMappingsAsFilesUnderVcs |
263,196 | void () { LOG.debug("disposed"); MyVcsActivator activator; synchronized (myUpdateLock) { Disposer.dispose(myFilePointerDisposable); myMappings = Collections.emptyList(); myMappedRoots = Collections.emptyList(); myMappedRootsMapping = new RootMapping(Collections.emptyList()); myMappedRootShortNames = Collections.emptyMa... | dispose |
263,197 | List<VcsDirectoryMapping> () { return myMappings; } | getDirectoryMappings |
263,198 | List<VcsDirectoryMapping> (String vcsName) { return ContainerUtil.filter(myMappings, mapping -> Objects.equals(mapping.getVcs(), vcsName)); } | getDirectoryMappings |
263,199 | boolean () { return ContainerUtil.all(myMappings, mapping -> mapping.isNoneMapping()); } | isEmpty |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.