From a5a72a89fc88da78c76070015177bc975344343b Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Wed, 12 Feb 2020 18:13:21 +0300 Subject: [PATCH] Wizard: allow to create multiple JVM targets #KT-36177 fixed --- .../projectWizard/moduleConfigurators/TargetConfigurator.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/tools/new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/moduleConfigurators/TargetConfigurator.kt b/libraries/tools/new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/moduleConfigurators/TargetConfigurator.kt index a2e93ab415f..23926ffb629 100644 --- a/libraries/tools/new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/moduleConfigurators/TargetConfigurator.kt +++ b/libraries/tools/new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/moduleConfigurators/TargetConfigurator.kt @@ -31,7 +31,7 @@ interface SingleCoexistenceTargetConfigurator : TargetConfigurator { other.none { it == this } } -interface SimpleTargetConfigurator : TargetConfigurator, SingleCoexistenceTargetConfigurator { +interface SimpleTargetConfigurator : TargetConfigurator { val moduleSubType: ModuleSubType override val moduleType get() = moduleSubType.moduleType override val id get() = "${moduleSubType.name}Target" @@ -102,8 +102,7 @@ object CommonTargetConfigurator : TargetConfiguratorWithTests(), SimpleTargetCon object JvmTargetConfigurator : JvmModuleConfigurator(), TargetConfigurator, - SimpleTargetConfigurator, - SingleCoexistenceTargetConfigurator { + SimpleTargetConfigurator { override val moduleSubType = ModuleSubType.jvm override val text: String