use of com.intellij.ide.util.projectWizard.importSources.DetectedProjectRoot in project intellij-community by JetBrains.
the class CloudGitProjectStructureDetector method detectJavaRoots.
private DirectoryProcessingResult detectJavaRoots(String javaSourceRootTypeName, @NotNull File dir, @NotNull File[] children, @NotNull File base, @NotNull List<DetectedProjectRoot> result) {
List<DetectedProjectRoot> detectedJavaRoots = new ArrayList<>();
DirectoryProcessingResult processingResult = myJavaDetector.detectRoots(dir, children, base, detectedJavaRoots);
for (DetectedProjectRoot detectedJavaRoot : detectedJavaRoots) {
if (detectedJavaRoot instanceof JavaModuleSourceRoot) {
result.add(new CloudGitJavaSourceRoot(javaSourceRootTypeName, (JavaModuleSourceRoot) detectedJavaRoot));
}
}
return processingResult;
}
Aggregations