SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider .getProvider(project, SVNProviderPlugin.getTypeId());
        protected IStatus run(IProgressMonitor monitor) {			monitor.beginTask(null, IProgressMonitor.UNKNOWN);			try{				SVNProviderPlugin plugin = SVNProviderPlugin.getPlugin();								if (plugin == null || plugin.getSimpleDialogsHelper() == null){					if (++reschedCount > MAX_RETRIES){						String errorString = "Subclipse core and/or ui didn't come up in " + MAX_RETRIES + " retries, failing.";  //$NON-NLS-1$						System.err.println(errorString); // Let it be visible to the user						throw new SVNException(errorString);					}					schedule(1000);					return Status.OK_STATUS;				}								if (!plugin.getSimpleDialogsHelper().promptYesNo(						"Auto-add "+project.getName()+" to source control", //$NON-NLS-1$						  "The new project \""+ project.getName() +"\" was created in a subversion " + //$NON-NLS-1$						  "controlled directory.\n\n" + //$NON-NLS-1$						  "Would you like to automatically add it to source control?", true)) { //$NON-NLS-1$					return Status.OK_STATUS;				}										SVNClientManager svnClientManager = plugin.getSVNClientManager();				ISVNClientAdapter client = svnClientManager.createSVNClient();				File file = project.getLocation().toFile();				client.addDirectory(file, false);				RepositoryProvider.map(project, SVNProviderPlugin.getTypeId());				SVNTeamProvider provider = (SVNTeamProvider) RepositoryProvider						.getProvider(project, SVNProviderPlugin.getTypeId());				plugin.getStatusCacheManager().refreshStatus(project,						IResource.DEPTH_INFINITE);							}catch(Exception e){                SVNProviderPlugin.log(IStatus.ERROR, "Could not auto-add project " + project.getName(), e); //$NON-NLS-1$				return Status.CANCEL_STATUS;			}finally{				monitor.done();			}			return Status.OK_STATUS;        }