private Set collectUniqueResourcesForChanges(final PendingChange[] changes){
  Check.notNull(changes,"changes");
  final Set uniqueResources=new HashSet();
  for (int i=0; i < changes.length; i++) {
    final PendingChange change=changes[i];
    final String localPath=change.getLocalItem();
    if (localPath == null || localPath.length() == 0) {
      continue;
    }
    final IResource resource=getAreaResourceForLocalPath(localPath);
    if (resource != null) {
      uniqueResources.add(resource);
    }
  }
  return uniqueResources;
}

private Set collectUniqueResourcesForChanges ( final PendingChange [ ] changes ) { Check . notNull ( changes , "changes" ) ; final Set uniqueResources = new HashSet ( ) ; for ( int i = 0 ; i < changes . length ; i ++ ) { final PendingChange change = changes [ i ] ; final String localPath = change . getLocalItem ( ) ; if ( localPath == null || localPath . length ( ) == 0 ) { continue ; } final IResource resource = getAreaResourceForLocalPath ( localPath ) ; if ( resource != null ) { uniqueResources . add ( resource ) ; } } return uniqueResources ; }
gets the resources that correspond to the given changes at the configured area ( file , project , etc . ) and puts them in the given list . if the change does not have an eclipse resource , it is ignored . < p > if the area to check is wider than file ( for instance , project ) , multiple changes in a single project result in one project resource being added to the resource list .
