progress.setRange(0, files.size());
for (final File file : files) {
progress.increment(1, file.getName());
Iterator<IResource> resourceIt = repository.getResources(file);
while (resourceIt.hasNext()) {
final IResource resource = resourceIt.next();
if (resource.isDirectory()) {
continue;
}
if (resource.getName().endsWith(".class")) {
index++;
completionService.submit(new Callable<Set<File>>() {
public Set<File> call() throws Exception {
final String className = resource.getName()
.substring(
0,
resource.getName().lastIndexOf(
".class")).replace('/',
'.');
Set<File> usedFiles = new HashSet<File>();
for (String usedClass : repository.findClass(
className).getUsedClasses()) {