IFT-525 Add Java or Kotlin onboarding tour promoter

Created the separate `intellij.kotlin.onboarding-promoter` module for the promoter extension.
This module is not bundled to Kotlin plugin because the promoter should be present only in IDEA Community/Ultimate (when Kotlin and Features Trainer plugins are enabled).
The name of this module is prefixed by `intellij`, because otherwise `KotlinModuleConsistencyTest` will fail. Also, there will be a lot of failed tests because this module won't be loaded in `ClassPathXmlPathResolver.resolveModuleFile` (`intellij` prefixed module descriptors can be missed when loading, by `kotlin` is not).

GitOrigin-RevId: 4b81ff2bfc0b60148e8b91fd35539edd113ab787
This commit is contained in:
Konstantin Hudyakov
2023-11-29 11:39:58 +02:00
committed by intellij-monorepo-bot
parent 4798cf5858
commit 228b04489b
12 changed files with 108 additions and 16 deletions

View File

@@ -19,11 +19,14 @@ import training.ui.LearningUiUtil
import training.util.getFeedbackLink
import javax.swing.JList
/** should be the same as in the [JavaLangSupport] bean declaration in the plugin XML */
const val javaLanguageId: String = "JAVA"
internal class JavaLangSupport : JavaBasedLangSupport() {
override val contentRootDirectoryName: String = "IdeaLearningProject"
override val projectResourcePath: String = "learnProjects/java/LearnProject"
override val primaryLanguage: String = "JAVA"
override val primaryLanguage: String = javaLanguageId
override val defaultProductName: String = "IDEA"