diff --git a/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatform.kt b/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatform.kt index 18c341d2f5b..00abe124cbd 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatform.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatform.kt @@ -7,14 +7,15 @@ package org.jetbrains.kotlin.platform import org.jetbrains.kotlin.cli.common.arguments.CommonCompilerArguments import org.jetbrains.kotlin.config.TargetPlatformVersion +import org.jetbrains.kotlin.utils.DescriptionAware -abstract class IdePlatform, Arguments : CommonCompilerArguments> { +abstract class IdePlatform, Arguments : CommonCompilerArguments> : DescriptionAware { abstract val kind: Kind abstract val version: TargetPlatformVersion abstract fun createArguments(init: Arguments.() -> Unit = {}): Arguments - val description + override val description get() = kind.name + " " + version.description override fun toString() = description diff --git a/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatformKind.kt b/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatformKind.kt index a22ddd36636..a0cb990fa63 100644 --- a/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatformKind.kt +++ b/jps/jps-common/src/org/jetbrains/kotlin/platform/IdePlatformKind.kt @@ -27,6 +27,8 @@ abstract class IdePlatformKind> { override fun equals(other: Any?): Boolean = javaClass == other?.javaClass override fun hashCode(): Int = javaClass.hashCode() + override fun toString() = name + companion object { // We can't use the ApplicationExtensionDescriptor class directly because it's missing in the JPS process private val extension = ApplicationManager.getApplication()?.let {