ISVNRemoteFolder remote[] = { new RemoteFolder(loc, url,
SVNRevision.HEAD) };
IProject[] local = { SVNWorkspaceRoot.getProject(newProjectName) };
// FIXME ndh: Use a CheckoutCommand instead. We should not depend on
// org.tigris.subversion.subclipse.ui.
final CheckoutAsProjectOperation checkoutAsProjectOperation = new CheckoutAsProjectOperation(
null, remote, local);
SVNRevision revision = getRevision(info.revision);
if (revision != null)
checkoutAsProjectOperation.setSvnRevision(revision);
checkoutAsProjectOperation.run(monitor);
result = local[0];
} catch (SVNException e1) {
log.debug("Undocumented exception", e1);
} catch (MalformedURLException e1) {
log.debug("Could not parse SVN URL", e1);