public abstract class JavaSourceRootDetector extends ProjectStructureDetector
ProjectStructureDetector.DirectoryProcessingResultEP_NAME| Constructor and Description |
|---|
JavaSourceRootDetector() |
| 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.
|
java.lang.String |
getDetectorId() |
protected abstract java.lang.String |
getFileExtension() |
protected abstract java.lang.String |
getLanguageName() |
protected abstract NullableFunction<java.lang.CharSequence,java.lang.String> |
getPackageNameFetcher() |
createWizardSteps, setupProjectStructurepublic ProjectStructureDetector.DirectoryProcessingResult detectRoots(java.io.File dir, java.io.File [] children, java.io.File base, java.util.List<DetectedProjectRoot> result)
ProjectStructureDetectordetectRoots in class ProjectStructureDetectordir - 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 java.lang.String getDetectorId()
getDetectorId in class ProjectStructureDetectorprotected abstract java.lang.String getLanguageName()
protected abstract java.lang.String getFileExtension()
protected abstract NullableFunction<java.lang.CharSequence,java.lang.String> getPackageNameFetcher()