Wizard: place all settings of first step into one setting list

This commit is contained in:
Ilya Kirillov
2020-03-13 15:43:46 +03:00
parent 586b044235
commit cbfe05efc8
8 changed files with 71 additions and 125 deletions
@@ -12,7 +12,7 @@ import org.jetbrains.kotlin.tools.projectWizard.settings.version.Version
import java.nio.file.Paths
class StructurePlugin(context: Context) : Plugin(context) {
val projectPath by pathSetting("Root path", GenerationPhase.PROJECT_GENERATION) {
val projectPath by pathSetting("Location", GenerationPhase.PROJECT_GENERATION) {
defaultValue = value(Paths.get("."))
}
val name by stringSetting("Name", GenerationPhase.PROJECT_GENERATION)
@@ -9,7 +9,7 @@ import org.jetbrains.kotlin.tools.projectWizard.projectTemplates.ProjectTemplate
class ProjectTemplatesPlugin(context: Context) : Plugin(context) {
val template by dropDownSetting<ProjectTemplate>(
"Template",
"Project template",
GenerationPhase.INIT_TEMPLATE,
parser = valueParserM { _, _ ->
Failure(ParseError("Project templates is not supported in yaml for now"))