import { mavenExplorerProvider } from "../mavenExplorerProvider" ; import { ITreeItem } from "./ITreeItem" ; import { MavenProject } from "./MavenProject" ; import { Menu } from "./Menu" ; deprecated export class ModulesMenu extends Menu implements ITreeItem { constructor ( projectNode ) { super ( projectNode ) ; this . name = "Modules" ; } public getChildren ( ) { return this . project . modules . map ( modulePomPath => { const found = mavenExplorerProvider . getMavenProject ( modulePomPath ) ; return found ? found : new MavenProject ( modulePomPath ) ; } ) ; } }