if (svnDir != null && !svnDir.isTeamPrivateMember()) svnDir.setTeamPrivateMember(true);
if (svnDir != null && !svnDir.isTeamPrivateMember()) { if (!isSvnProject) { if (plugin.isManagedBySubversion(svnDir.getParent())) svnDir.setTeamPrivateMember(true); } else { svnDir.setTeamPrivateMember(true); } }
    public void metaFilesDetected(IProject project, IContainer[] containers) {		boolean isProject = false;		        for (int i = 0; i < containers.length; i++) {            IContainer container = containers[i];            IContainer svnDir = null;						if (!isProject && container.getType() == IResource.PROJECT)				isProject = true;			            if (SVNProviderPlugin.getPlugin().isAdminDirectory(container.getName())) { //$NON-NLS-1$                svnDir = container;            } else {                IResource resource = container.findMember(SVNProviderPlugin.getPlugin().getAdminDirectoryName()); //$NON-NLS-1$                if (resource != null && resource.getType() != IResource.FILE) {                    svnDir = (IContainer)resource;                }            }            try {                if (svnDir != null && !svnDir.isTeamPrivateMember())                    svnDir.setTeamPrivateMember(true);            } catch (CoreException e) {                SVNProviderPlugin.log(IStatus.ERROR, "Could not flag meta-files as team-private for " + svnDir.getFullPath(), e); //$NON-NLS-1$            }        }				if (!isProject)			return; // Nothing more to do, all remaining operations are on projects		 		 // Somehow sometimes it doesn't work using project.findMember(SVNConstants.SVN_DIRNAME) 		 		 // here, this could be due to timing issue with workspace addition, so use trusty File 		 		 // instead.				 		 File svnDir = project.getLocation().append(SVNProviderPlugin.getPlugin().getAdminDirectoryName()).toFile(); //$NON-NLS-1$				if (svnDir != null && svnDir.exists() && svnDir.isDirectory()) {			// It's a project and has toplevel .svn directory, lets share it!			getAutoShareJob().share(project);		} else {			// It's a project and doesn't have .svn dir, let's see if we can add it!		 		 		 File parentSvnDir = project.getLocation().append("../" + SVNProviderPlugin.getPlugin().getAdminDirectoryName()).		 		 		 		 		 toFile(); //$NON-NLS-1$						if (parentSvnDir != null && parentSvnDir.exists()					&& parentSvnDir.isDirectory()) {				createAutoAddJob(project);			}		}		    }