Wizard: add project name and path to the first step

This commit is contained in:
Ilya Kirillov
2020-03-13 14:35:29 +03:00
parent cf7bbdde10
commit 586b044235
6 changed files with 83 additions and 36 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 valueSetting("Root path", GenerationPhase.PROJECT_GENERATION, pathParser) {
val projectPath by pathSetting("Root path", GenerationPhase.PROJECT_GENERATION) {
defaultValue = value(Paths.get("."))
}
val name by stringSetting("Name", GenerationPhase.PROJECT_GENERATION)