Package org.eclipse.team.svn.core.resource

Examples of org.eclipse.team.svn.core.resource.IRepositoryResource


    for (iterator = treeSelection.iterator(); iterator.hasNext();) {
      Object selectedObject = iterator.next();
      if (!(selectedObject instanceof RepositoryFile))
        continue;
      RepositoryFile repositoryFile = (RepositoryFile) selectedObject;
      IRepositoryResource resource = repositoryFile
          .getRepositoryResource();
      resources.add(resource);
    }
  }
View Full Code Here


    return export(url, uniqueDirectory);
  }

  public static File export(String url, File directory) {
    url = decode(url);
    IRepositoryResource resource = SVNUtility.asRepositoryResource(url,
        false);
    if (resource == null) {
      // TODO externalize
      logger.severe("'" + url + "' " + "is not a svn resource"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
      return null;
    }

    IRepositoryResource[] resources = { resource };
    int depth = 0;
    ExportOperation exportOperation = new ExportOperation(resources,
        directory.getAbsolutePath(), depth);
    exportOperation.run(new NullProgressMonitor());

    String name = resource.getName();
    return FileUtil.getFile(name, directory);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.team.svn.core.resource.IRepositoryResource

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.