This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
import org.openide.filesystems.FileObject;
import org.openide.filesystems.FileUtil;
import org.openide.util.NbBundle;
import org.openide.util.NbCollections;
import org.openide.util.RequestProcessor;
import org.openide.util.RequestProcessor.Task;
final Set<File> result = new HashSet<File>();
// Search in the source groups of the projects.
for (SourceGroup group : ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA)) {
for (FileObject fo : group.getRootFolder().getChildren()) {
for (FileObject fo : NbCollections.iterable(group.getRootFolder().getChildren(true))) {
if (Thread.currentThread().isInterrupted()) {
return;
}