import { InputBoxOptions } from "vscode" ; import { AzureWizardPromptStep } from "vscode-azureextensionui" ; import { localize } from "../../../localize" ; import { IJavaProjectWizardContext , validateMavenIdentifier } from "./IJavaProjectWizardContext" ; export class JavaGroupIdStep extends AzureWizardPromptStep < IJavaProjectWizardContext > { public async prompt ( context ) { const options = { placeHolder : localize ( 'groupIdPlaceholder' , 'Group id' ) , prompt : localize ( 'groupIdPrompt' , 'Provide a group id' ) , validateInput : validateMavenIdentifier , value : 'com.function' } ; context . javaGroupId = await context . ui . showInputBox ( options ) ; } public shouldPrompt ( context ) { return ! context . javaGroupId ; } }