Show popup about too old bundled compiler in Gradle and Maven (KT-25546)

This commit is contained in:
Nikolay Krasko
2018-07-18 13:41:08 +03:00
parent d27002827e
commit 4be5c395aa
10 changed files with 254 additions and 11 deletions
@@ -0,0 +1,23 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.maven
import com.intellij.openapi.module.Module
import com.intellij.openapi.project.Project
import org.jetbrains.idea.maven.project.MavenImportListener
import org.jetbrains.idea.maven.project.MavenProject
import org.jetbrains.kotlin.idea.configuration.notifyOutdatedBundledCompilerIfNecessary
class MavenImportListener(val project: Project) {
init {
project.messageBus.connect().subscribe(
MavenImportListener.TOPIC,
MavenImportListener { _: Collection<MavenProject>, _: List<Module> ->
notifyOutdatedBundledCompilerIfNecessary(project)
}
)
}
}