Wizard: do not allow to create more than one target of each type
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ interface SingleCoexistenceTargetConfigurator : TargetConfigurator {
|
|||||||
other.none { it == this }
|
other.none { it == this }
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SimpleTargetConfigurator : TargetConfigurator {
|
interface SimpleTargetConfigurator : TargetConfigurator, SingleCoexistenceTargetConfigurator {
|
||||||
val moduleSubType: ModuleSubType
|
val moduleSubType: ModuleSubType
|
||||||
override val moduleType get() = moduleSubType.moduleType
|
override val moduleType get() = moduleSubType.moduleType
|
||||||
override val id get() = "${moduleSubType.name}Target"
|
override val id get() = "${moduleSubType.name}Target"
|
||||||
@@ -49,7 +49,7 @@ private fun Module.createTargetAccessIr(moduleSubType: ModuleSubType) =
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
interface JsTargetConfigurator : TargetConfigurator {
|
interface JsTargetConfigurator : TargetConfigurator, SingleCoexistenceTargetConfigurator {
|
||||||
override val moduleType: ModuleType get() = ModuleType.js
|
override val moduleType: ModuleType get() = ModuleType.js
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user