Package org.eclipse.team.core

Examples of org.eclipse.team.core.ProjectSetSerializationContext


    File cRepo = createRepository(cProject.getLocation(), "http://example.org/repo-c", "stable");
    connectProject(cProject, cRepo);

    IProject[] projects = new IProject[] { aProject, baProject, bbProject, cProject };
    String[] references = capability.asReference(
        projects, new ProjectSetSerializationContext(), new NullProgressMonitor());
    assertEquals(4, references.length);
    assertEquals("1.0,http://example.org/repo-a,master,.", references[0]);
    assertEquals("1.0,http://example.org/repo-b,master,ba", references[1]);
    assertEquals("1.0,http://example.org/repo-b,master,bb", references[2]);
    assertEquals("1.0,http://example.org/repo-c,stable,.", references[3]);
View Full Code Here


    IPath otherPathWithX = reposPath.append("other").append("x");
    String otherReferenceWithDifferentUrl = createProjectReference(otherPathWithX, "master", "xb");

    try {
      capability.addToWorkspace(new String[] { otherReferenceWithDifferentUrl },
          new ProjectSetSerializationContext(),
          new NullProgressMonitor());
      fail("Should throw TeamException when a repo exists at the place but doesn't have the same URL.");
    } catch (TeamException e) {
      // This is expected
    }
View Full Code Here

    return uri.toString();
  }

  private void addToWorkspace(String[] references) throws TeamException {
    capability.addToWorkspace(references,
        new ProjectSetSerializationContext(),
        new NullProgressMonitor());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.team.core.ProjectSetSerializationContext

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.