.gradle.kts, listener: support multiple gradle projects linked to one IntelliJ project

GradleScriptInputsWatcher moved to GradleScriptListener.kt and GradleBuildRootsManager.kt
This commit is contained in:
Sergey Rostov
2020-05-06 16:51:57 +03:00
parent 258064d82d
commit cde53285c6
16 changed files with 175 additions and 150 deletions
@@ -16,12 +16,9 @@ import org.jetbrains.kotlin.psi.KtFile
/**
* [ScriptChangesNotifier] will call first applicable [ScriptChangeListener] when editor is activated or document changed.
*
* Listener may call [ScriptConfigurationUpdater] to invalidate configuration and schedule reloading.
*
* @see DefaultScriptConfigurationManager for more details.
* Listener should do something to invalidate configuration and schedule reloading.
*/
abstract class ScriptChangeListener(protected val project: Project) {
abstract class ScriptChangeListener(val project: Project) {
val default: DefaultScriptingSupport
get() = DefaultScriptingSupport.getInstance(project)