Wizard: rework build system component

This commit is contained in:
Ilya Kirillov
2020-04-07 17:56:33 +03:00
parent c1f40907db
commit 80f09d66db
6 changed files with 130 additions and 135 deletions
@@ -1,6 +1,7 @@
buildsystem.type.gradle.groovy=Gradle Groovy
buildsystem.type.gradle.kotlin=Gradle Kotlin
buildsystem.type.intellij=IntelliJ build system
buildsystem.type.intellij=IntelliJ
buildsystem.type.intellij.full=IntelliJ build system
buildsystem.type.maven=Maven
error.template.not.found=Template with an id {0} is not found
@@ -45,7 +45,7 @@ abstract class BuildSystemPlugin(context: Context) : Plugin(context) {
KotlinNewProjectWizardBundle.message(
"plugin.buildsystem.setting.type.error.wrong.project.kind",
projectKind,
buildSystemType.text
buildSystemType.fullText
)
)
} else ValidationResult.OK
@@ -122,10 +122,13 @@ data class BuildFileData(
@NonNls val buildFileName: String
)
enum class BuildSystemType(@Nls override val text: String) : DisplayableSettingItem {
enum class BuildSystemType(@Nls override val text: String, val fullText: String = text) : DisplayableSettingItem {
GradleKotlinDsl(KotlinNewProjectWizardBundle.message("buildsystem.type.gradle.kotlin")),
GradleGroovyDsl(KotlinNewProjectWizardBundle.message("buildsystem.type.gradle.groovy")),
Jps(KotlinNewProjectWizardBundle.message("buildsystem.type.intellij")),
Jps(
KotlinNewProjectWizardBundle.message("buildsystem.type.intellij"),
KotlinNewProjectWizardBundle.message("buildsystem.type.intellij.full")
),
Maven(KotlinNewProjectWizardBundle.message("buildsystem.type.maven"))
;