import { AzureWizardPromptStep , IAzureQuickPickItem } from "vscode-azureextensionui" ; import { JavaBuildTool , previewDescription } from "../../../constants" ; import { localize } from "../../../localize" ; import { IJavaProjectWizardContext } from "./IJavaProjectWizardContext" ; export class JavaBuildToolStep extends AzureWizardPromptStep < IJavaProjectWizardContext > { public static async setDefaultBuildTool ( context ) { context . buildTool = JavaBuildTool . maven ; } public async prompt ( context ) { const picks = [ { label : 'Maven' , data : JavaBuildTool . maven } , { label : 'Gradle' , description : previewDescription , data : JavaBuildTool . gradle } , ] ; const placeHolder = localize ( 'selectJavaBuildTool' , 'Select the build tool for Java project' ) ; context . buildTool = ( await context . ui . showQuickPick ( picks , { placeHolder } ) ) . data ; } public shouldPrompt ( context ) { return ! context . buildTool ; } }