File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
kotlin/org/domaframework/doma/intellij/setting Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,12 @@ package org.domaframework.doma.intellij.setting
1717
1818import com.intellij.openapi.application.PathManager
1919import com.intellij.openapi.project.Project
20- import com.intellij.openapi.roots.ModuleRootListener
2120import com.intellij.openapi.startup.ProjectActivity
2221import org.domaframework.doma.intellij.common.util.PluginUtil
2322
2423class DomaToolStartupActivity : ProjectActivity {
2524 override suspend fun execute (project : Project ) {
2625 setProperty()
27- registerModuleRootListener(project)
2826 }
2927
3028 private fun setProperty () {
@@ -35,11 +33,4 @@ class DomaToolStartupActivity : ProjectActivity {
3533 )
3634 println (" PluginVersion: ${System .getProperty(" org.domaframework.doma.intellij.plugin.version" )} " )
3735 }
38-
39- private fun registerModuleRootListener (project : Project ) {
40- project.messageBus.connect().subscribe(
41- ModuleRootListener .TOPIC ,
42- DomaToolsModuleRootListener (project),
43- )
44- }
4536}
Original file line number Diff line number Diff line change 1515 <resource-bundle >messages.DomaToolsBundle</resource-bundle >
1616 <resource-bundle >messages.LLMInstallerBundle</resource-bundle >
1717
18+ <projectListeners >
19+ <listener
20+ class =" org.domaframework.doma.intellij.setting.DomaToolsModuleRootListener"
21+ topic =" com.intellij.openapi.roots.ModuleRootListener" />
22+ </projectListeners >
23+
1824 <extensions defaultExtensionNs =" com.intellij" >
1925 <postStartupActivity implementation =" org.domaframework.doma.intellij.setting.DomaToolStartupActivity" />
2026
You can’t perform that action at this time.
0 commit comments