New/Removed Module events

Im looking to be notified when modules are added/removed from the project.  I dont see a way to do this without polling the ModuleManager.  I was hoping to subscribe to the ModuleManager for this type of information.  Is there a way to do this?

Thanks.

Erik

---
Original message URL: http://devnet.jetbrains.net/message/5514337#5514337

0
1 comment

Maybe this help:

com.intellij.ProjectTopics#MODULES


and

public interface com.intellij.openapi.project.ModuleListener extends EventListener {
  void moduleAdded(Project project, Module module);   void beforeModuleRemoved(Project project, Module module);   void moduleRemoved(Project project, Module module);   void modulesRenamed(Project project, List<Module> modules, Function<Module, String> oldNameProvider); }

0

Please sign in to leave a comment.