Package org.eclipse.egit.core.internal.indexdiff

Examples of org.eclipse.egit.core.internal.indexdiff.IndexDiffCache


    final RepositoryMapping map = RepositoryMapping.getMapping(file);
    if (map == null)
      return false;

    String repoRelativePath = map.getRepoRelativePath(file);
    IndexDiffCache indexDiffCache = Activator.getDefault()
        .getIndexDiffCache();
    IndexDiffCacheEntry indexDiffCacheEntry = indexDiffCache
        .getIndexDiffCacheEntry(map.getRepository());
    IndexDiffData indexDiff = indexDiffCacheEntry.getIndexDiff();
    if (indexDiff != null) {
      if (indexDiff.getUntracked().contains(repoRelativePath))
        return false;
View Full Code Here


    Map<Repository, Collection<String>> resourcesByRepository = ResourceUtil.splitPathsByRepository(refreshCachePaths);
    for (Map.Entry<Repository, Collection<String>> entry : resourcesByRepository.entrySet()) {
      Repository repository = entry.getKey();
      Collection<String> files = entry.getValue();

      IndexDiffCache cache = Activator.getDefault().getIndexDiffCache();
      IndexDiffCacheEntry cacheEntry = cache.getIndexDiffCacheEntry(repository);
      if (cacheEntry != null)
        if (refreshAll)
          cacheEntry.refresh();
        else
          cacheEntry.refreshFiles(files);
View Full Code Here

    props.put(DebugOptions.LISTENER_SYMBOLICNAME, pluginId);
    context.registerService(DebugOptionsListener.class.getName(), this,
        props);

    repositoryCache = new RepositoryCache();
    indexDiffCache = new IndexDiffCache();
    try {
      GitProjectData.reconfigureWindowCache();
    } catch (RuntimeException e) {
      logError(CoreText.Activator_ReconfigureWindowCacheError, e);
    }
View Full Code Here

        .assertScheduled("Delete of file outside of workspace should have cause an index diff cache job.");
  }

  private static void initIndexDiffCache(Repository repository)
      throws Exception {
    IndexDiffCache cache = Activator.getDefault().getIndexDiffCache();
    IndexDiffCacheEntry cacheEntry = cache.getIndexDiffCacheEntry(repository);
    assertNotNull(cacheEntry);
    Job.getJobManager().join(JobFamilies.INDEX_DIFF_CACHE_UPDATE, null);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.internal.indexdiff.IndexDiffCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.