Package org.eclipse.team.core

Examples of org.eclipse.team.core.ScmUrlImportDescription


    }

    private StyledString getStyledText(Object element) {
      StyledString styledString = new StyledString();
      if (element instanceof ScmUrlImportDescription) {
        ScmUrlImportDescription description = (ScmUrlImportDescription) element;
        String project = description.getProject();
        URI scmUrl = description.getUri();
        String version = getTag(scmUrl);
        String host = getServer(scmUrl);
        styledString.append(project);
        if (version != null) {
          styledString.append(' ');
View Full Code Here


  }

  // ScmUrlImportDescription can handle " in Strings expected to be URI refs
  @Test
  public void testScmUriWithPath() throws Exception {
    ScmUrlImportDescription description = new ScmUrlImportDescription(
        "scm:git:git://git.eclipse.org/gitroot/platform/eclipse.platform.team.git;path=\"bundles/org.eclipse.team.core\"",
        null);
    URI uri = description.getUri();
    GitURI gitUri = new GitURI(uri);
    assertEquals("bundles/org.eclipse.team.core", gitUri.getPath()
        .toString());
    URIish uriish = new URIish(
        "git://git.eclipse.org/gitroot/platform/eclipse.platform.team.git");
View Full Code Here

        refString);
  }

  @Test
  public void testScmUriWithPathAndTag() throws Exception {
    ScmUrlImportDescription description = new ScmUrlImportDescription(
        "scm:git:git://git.eclipse.org/gitroot/platform/eclipse.platform.ui.git;path=\"bundles/org.eclipse.jface\";tag=v20111107-2125",
        null);
    URI uri = description.getUri();
    GitURI gitUri = new GitURI(uri);
    assertEquals("bundles/org.eclipse.jface", gitUri.getPath().toString());
    URIish uriish = new URIish(
        "git://git.eclipse.org/gitroot/platform/eclipse.platform.ui.git");
    assertEquals(uriish, gitUri.getRepository());
View Full Code Here

        refString);
  }

  @Test
  public void testScmUriWithPathProjectAndTag() throws Exception {
    ScmUrlImportDescription description = new ScmUrlImportDescription(
        "scm:git:git://git.eclipse.org/gitroot/equinox/rt.equinox.bundles.git;path=\"bundles/org.eclipse.equinox.http.jetty6\";project=\"org.eclipse.equinox.http.jetty\";tag=v20111010-1614",
        null);
    URI uri = description.getUri();
    GitURI gitUri = new GitURI(uri);
    assertEquals("bundles/org.eclipse.equinox.http.jetty6", gitUri
        .getPath().toString());
    URIish uriish = new URIish(
        "git://git.eclipse.org/gitroot/equinox/rt.equinox.bundles.git");
View Full Code Here

TOP

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

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.