import * as vscode from "vscode" ; import { ITreeItem } from "./ITreeItem" ; import { MavenProject } from "./MavenProject" ; const CONTEXT_VALUE = "maven:menu" ; export abstract class Menu implements ITreeItem { protected project : MavenProject ; protected name : string ; constructor ( project ) { this . project = project ; } public abstract getChildren ( ) ; public getContextValue ( ) { return CONTEXT_VALUE ; } public getTreeItem ( ) { const treeItem = new vscode . TreeItem ( this . name , vscode . TreeItemCollapsibleState . Collapsed ) ; treeItem . iconPath = new vscode . ThemeIcon ( "folder" ) ; return treeItem ; } }