public class DefaultProjectStructureDetector extends ProjectStructureDetector
ProjectStructureDetector.DirectoryProcessingResult
EP_NAME
Constructor and Description |
---|
DefaultProjectStructureDetector() |
Modifier and Type | Method and Description |
---|---|
ProjectStructureDetector.DirectoryProcessingResult |
detectRoots(java.io.File dir,
java.io.File [] children,
java.io.File base,
java.util.List<DetectedProjectRoot> result)
This methods is called recursively for all directories under the selected root directory.
|
void |
setupProjectStructure(java.util.Collection<DetectedProjectRoot> roots,
ProjectDescriptor projectDescriptor,
ProjectFromSourcesBuilder builder)
Setup modules and libraries for the selected roots
|
createWizardSteps, getDetectorId
public ProjectStructureDetector.DirectoryProcessingResult detectRoots(java.io.File dir, java.io.File [] children, java.io.File base, java.util.List<DetectedProjectRoot> result)
ProjectStructureDetector
detectRoots
in class ProjectStructureDetector
dir
- current directorychildren
- its childrenbase
- the root directory in which project files are detected. All detected roots must be located under this directory.result
- list of detected rootsProjectStructureDetector.DirectoryProcessingResult.PROCESS_CHILDREN
if children of dir
need to be processed by this detectorProjectStructureDetector.DirectoryProcessingResult.SKIP_CHILDREN
to skip all children of dir
from processingProjectStructureDetector.DirectoryProcessingResult.skipChildrenAndParentsUpTo(java.io.File)
(parent)
to skip all directories under parent
from processing.
parent
must be an ancestor of dir
or dir
itself
public void setupProjectStructure(java.util.Collection<DetectedProjectRoot> roots, ProjectDescriptor projectDescriptor, ProjectFromSourcesBuilder builder)
ProjectStructureDetector
setupProjectStructure
in class ProjectStructureDetector