public void computePackageFragmentRoots(IClasspathEntry[] resolvedClasspath,ObjectVector accumulatedRoots,HashSet rootIDs,IClasspathEntry referringEntry,boolean retrieveExportedRoots,Map rootToResolvedEntries) throws JavaModelException {
  if (referringEntry == null) {
    rootIDs.add(rootID());
  }
  for (int i=0, length=resolvedClasspath.length; i < length; i++) {
    computePackageFragmentRoots(resolvedClasspath[i],accumulatedRoots,rootIDs,referringEntry,retrieveExportedRoots,rootToResolvedEntries);
  }
}

public void computePackageFragmentRoots ( IClasspathEntry [ ] resolvedClasspath , ObjectVector accumulatedRoots , HashSet rootIDs , IClasspathEntry referringEntry , boolean retrieveExportedRoots , Map rootToResolvedEntries ) throws JavaModelException { if ( referringEntry == null ) { rootIDs . add ( rootID ( ) ) ; } for ( int i = 0 , length = resolvedClasspath . length ; i < length ; i ++ ) { computePackageFragmentRoots ( resolvedClasspath [ i ] , accumulatedRoots , rootIDs , referringEntry , retrieveExportedRoots , rootToResolvedEntries ) ; } }
returns ( local / all ) the package fragment roots identified by the given project ' s classpath . note : this follows project classpath references to find required project contributions , eliminating duplicates silently . only works with resolved entries
