Module hierarchy/ children modules

I have instance of module and I want to get all descendant modules (modules that structured as hierarchy in Project tree according to maven hierarchy for example). What way provided by API?

1 comment
Comment actions Permalink

I'm not quite sure what do you mean by 'Project tree'. In 'Project View' toolwindow modules are shown accordingly to how their directories are arranged on the file system. In 'Project Structure' dialog modules may be composed into groups, you can use com.intellij.openapi.module.ModuleManager#getModuleGroupPath method to get parent groups for a module.


Please sign in to leave a comment.