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

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


    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


  }

  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

   * Save local history.
   *
   * @param repository
   */
  public static void saveLocalHistory(Repository repository) {
    IndexDiffCacheEntry indexDiffCacheEntry = org.eclipse.egit.core.Activator
        .getDefault().getIndexDiffCache()
        .getIndexDiffCacheEntry(repository);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    if (indexDiffData != null) {
      Collection<IResource> changedResources = indexDiffData
          .getChangedResources();
      if (changedResources != null) {
        for (IResource changedResource : changedResources) {
View Full Code Here

TOP

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

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.