ISVNRemoteFolder folder = remoteFolders[0]; String url = folder.getUrl().toString() + "/.project"; try { ISVNClientAdapter client = SVNProviderPlugin.getPlugin().getSVNClientManager().createSVNClient(); client.getInfo(new SVNUrl(url)); hasProjectFile = true; project = SVNWorkspaceRoot.getProject(folder,null); } catch (Exception e) { hasProjectFile = false; }
if(!hasProjectFile && project == null) { try { new ProgressMonitorDialog(getShell()).run(true, false, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {  monitor = Policy.monitorFor(monitor); monitor.beginTask("Getting remote project info", 100); ISVNRemoteFolder folder = remoteFolders[0]; String url = folder.getUrl().toString() + "/.project"; try { ISVNClientAdapter client = SVNProviderPlugin.getPlugin().getSVNClientManager().createSVNClient(); client.getInfo(new SVNUrl(url)); hasProjectFile = true; monitor.worked(50); project = SVNWorkspaceRoot.getProject(folder,null); } catch (Exception e) { hasProjectFile = false; } finally { monitor.done(); } } }); } catch (InterruptedException e) {  } catch (InvocationTargetException e) { SVNUIPlugin.openError(getContainer().getShell(), Policy.bind("exception"), null, e.getCause(), SVNUIPlugin.PERFORM_SYNC_EXEC); } }
	private void checkForProjectFile() {		ISVNRemoteFolder folder = remoteFolders[0];		String url = folder.getUrl().toString() + "/.project"; //$NON-NLS-1$ 		try {			ISVNClientAdapter client = SVNProviderPlugin.getPlugin().getSVNClientManager().createSVNClient();			client.getInfo(new SVNUrl(url));			hasProjectFile = true;			project = SVNWorkspaceRoot.getProject(folder,null);		} catch (Exception e) {			hasProjectFile = false;		}			}