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

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


    IFolder testFolder2 = project.getFolder(TEST_FOLDER2);

    IDecoratableResource[] expectedDRs = new IDecoratableResource[] { new TestDecoratableResource(
        testFolder2).tracked() };
    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = { new DecoratableResourceAdapter(
        indexDiffData, testFolder2) };

    assertArrayEquals(expectedDRs, actualDRs);
  }
View Full Code Here


    IDecoratableResource[] expectedDRs = new IDecoratableResource[] {
        new TestDecoratableResource(project).tracked().dirty(),
        new TestDecoratableResource(file) };
    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, file) };

    assertArrayEquals(expectedDRs, actualDRs);
View Full Code Here

        new TestDecoratableResource(project).tracked().dirty(),
        new TestDecoratableResource(gitignore),
        new TestDecoratableResource(file),
        new TestDecoratableResource(test).ignored() };
    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, gitignore),
        new DecoratableResourceAdapter(indexDiffData, file),
        new DecoratableResourceAdapter(indexDiffData, test) };
View Full Code Here

        new TestDecoratableResource(project).tracked().dirty(),
        new TestDecoratableResource(gitignore),
        new TestDecoratableResource(file).ignored(),
        new TestDecoratableResource(dir).ignored() };
    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, gitignore),
        new DecoratableResourceAdapter(indexDiffData, file),
        new DecoratableResourceAdapter(indexDiffData, dir) };
View Full Code Here

        new TestDecoratableResource(project).tracked().dirty(),
        new TestDecoratableResource(folder).dirty(),
        new TestDecoratableResource(subFolder).dirty(),
        new TestDecoratableResource(file) };
    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, folder),
        new DecoratableResourceAdapter(indexDiffData, subFolder),
        new DecoratableResourceAdapter(indexDiffData, file) };
View Full Code Here

    IDecoratableResource[] expectedDRs = new IDecoratableResource[] {
        new TestDecoratableResource(project).tracked().modified(),
        new TestDecoratableResource(file).tracked().added() };
    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, file) };

    assertArrayEquals(expectedDRs, actualDRs);
View Full Code Here

    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;
      if (indexDiff.getIgnoredNotInIndex().contains(repoRelativePath))
        return false;
    }
    if (!file.exists())
      return false;
    if (file.isDerived())
View Full Code Here

    IDecoratableResource[] expectedDRs = new IDecoratableResource[] {
        new TestDecoratableResource(project).tracked(),
        new TestDecoratableResource(file).tracked() };

    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, file) };

    assertArrayEquals(expectedDRs, actualDRs);
View Full Code Here

    IDecoratableResource[] expectedDRs = new IDecoratableResource[] {
        new TestDecoratableResource(project).tracked().dirty(),
        new TestDecoratableResource(file).tracked().dirty() };

    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, file) };

    assertArrayEquals(expectedDRs, actualDRs);
View Full Code Here

    IDecoratableResource[] expectedDRs = new IDecoratableResource[] {
        new TestDecoratableResource(project).tracked().conflicts(),
        new TestDecoratableResource(file).tracked().conflicts() };

    waitForIndexDiffUpdate(true);
    IndexDiffData indexDiffData = indexDiffCacheEntry.getIndexDiff();
    IDecoratableResource[] actualDRs = {
        new DecoratableResourceAdapter(indexDiffData, project),
        new DecoratableResourceAdapter(indexDiffData, file) };

    assertArrayEquals(expectedDRs, actualDRs);
View Full Code Here

TOP

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

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.