String comment) throws SVNException, TeamException { SVNTeamProvider provider = getProvider(project);  provider.add(new IResource[]{resource}, IResource.DEPTH_ZERO, null);  provider.checkin(new IResource[]{resource}, comment, IResource.DEPTH_ZERO, null); ISVNLocalResource res = SVNWorkspaceRoot.getSVNResourceFor(resource);  }
String comment) throws SVNException, TeamException { SVNTeamProvider provider = getProvider(project);  provider.add(new IResource[] { resource }, IResource.DEPTH_ZERO, null);  provider.checkin(new IResource[] { resource }, comment, IResource.DEPTH_ZERO, null); ISVNLocalResource res = SVNWorkspaceRoot.getSVNResourceFor(resource); try { resource.refreshLocal(IResource.DEPTH_INFINITE, null); } catch (CoreException e) { fail(e.getMessage()); }  }
	protected void addAndCommit(IProject project, IResource resource,			String comment) throws SVNException, TeamException {		SVNTeamProvider provider = getProvider(project);		// add it to repository		provider.add(new IResource[]{resource}, IResource.DEPTH_ZERO, null);		// commit it		provider.checkin(new IResource[]{resource}, comment,				IResource.DEPTH_ZERO, null);		ISVNLocalResource res = SVNWorkspaceRoot.getSVNResourceFor(resource);			}