Search in sources :

Example 16 with DetectedProjectRoot

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;
}
Also used : DetectedProjectRoot(com.intellij.ide.util.projectWizard.importSources.DetectedProjectRoot) ArrayList(java.util.ArrayList) JavaModuleSourceRoot(com.intellij.ide.util.projectWizard.importSources.JavaModuleSourceRoot)

Aggregations

DetectedProjectRoot (com.intellij.ide.util.projectWizard.importSources.DetectedProjectRoot)16 File (java.io.File)8 ProjectStructureDetector (com.intellij.ide.util.projectWizard.importSources.ProjectStructureDetector)5 ModuleDescriptor (com.intellij.ide.util.importProject.ModuleDescriptor)3 DetectedSourceRoot (com.intellij.ide.util.projectWizard.importSources.DetectedSourceRoot)3 ArrayList (java.util.ArrayList)3 Pattern (java.util.regex.Pattern)2 NotNull (org.jetbrains.annotations.NotNull)2 DetectedRootData (com.intellij.ide.util.importProject.DetectedRootData)1 AbstractStepWithProgress (com.intellij.ide.util.projectWizard.AbstractStepWithProgress)1 ModuleWizardStep (com.intellij.ide.util.projectWizard.ModuleWizardStep)1 DetectedContentRoot (com.intellij.ide.util.projectWizard.importSources.DetectedContentRoot)1 JavaModuleSourceRoot (com.intellij.ide.util.projectWizard.importSources.JavaModuleSourceRoot)1 ModuleType (com.intellij.openapi.module.ModuleType)1 SmartList (com.intellij.util.SmartList)1 MultiMap (com.intellij.util.containers.MultiMap)1 TableColumn (javax.swing.table.TableColumn)1 NonNls (org.jetbrains.annotations.NonNls)1