I'm trying to subscribe for modules changes (added, removed,...) but couldn't find how, whith poject I did the following:
1.cleate class that implements com.intellij.openapi.project.ProjectManagerListener
2.subcribe using the ProjectManager:
I tried to do the same with the Module and implemented com.intellij.openapi.project.ModuleListener, but i couldn't find a way to set it from the ModuleManager.
When i searched i found that there was method Subscribe to com.intellij.ProjectTopics.MODULES on project bus or lower.
any idea how to use ProjectToopics to subscribe for modules changes?