public void add(IResource[] resources,IProgressMonitor monitor) throws TeamException {
  if (monitor == null) {
    monitor=new NullProgressMonitor();
  }
  Map table=getProviderMapping(resources);
  if (table.get(null) != null) {
    throw new SVNException(Policy.bind("RepositoryManager.addErrorNotAssociated"));
  }
  Set keySet=table.keySet();
  monitor.beginTask("",keySet.size() * 1000);
  monitor.setTaskName(Policy.bind("RepositoryManager.adding"));
  Iterator iterator=keySet.iterator();
  while (iterator.hasNext()) {
    IProgressMonitor subMonitor=new SubProgressMonitor(monitor,1000);
    SVNTeamProvider provider=(SVNTeamProvider)iterator.next();
    List list=(List)table.get(provider);
    IResource[] providerResources=(IResource[])list.toArray(new IResource[list.size()]);
    provider.add(providerResources,IResource.DEPTH_ZERO,subMonitor);
  }
}

public void add ( IResource [ ] resources , IProgressMonitor monitor ) throws TeamException { if ( monitor == null ) { monitor = new NullProgressMonitor ( ) ; } Map table = getProviderMapping ( resources ) ; if ( table . get ( null ) != null ) { throw new SVNException ( Policy . bind ( "RepositoryManager.addErrorNotAssociated" ) ) ; } Set keySet = table . keySet ( ) ; monitor . beginTask ( "" , keySet . size ( ) * 1000 ) ; monitor . setTaskName ( Policy . bind ( "RepositoryManager.adding" ) ) ; Iterator iterator = keySet . iterator ( ) ; while ( iterator . hasNext ( ) ) { IProgressMonitor subMonitor = new SubProgressMonitor ( monitor , 1000 ) ; SVNTeamProvider provider = ( SVNTeamProvider ) iterator . next ( ) ; List list = ( List ) table . get ( provider ) ; IResource [ ] providerResources = ( IResource [ ] ) list . toArray ( new IResource [ list . size ( ) ] ) ; provider . add ( providerResources , IResource . DEPTH_ZERO , subMonitor ) ; } }
add the given resources to their associated providers . this schedules the resources for addition ; they still need to be committed .
