How to listen to the library updates on Module?
已回答
I wanted to listen if user is adding a jar file to the module or not. Can we do it using PsiTreeChangeListener?
请先登录再写评论。
Just call project.getMessageBus().connect().subscribe(ProjectTopics.PROJECT_ROOTS, listener). See Javadocs of MessageBus and Topic for more details.
No, you need to use com.intellij.ProjectTopics#PROJECT_ROOTS instead.
How to use this class, how it works.. Could you please describe. There is no javadoc for this.
Thanks.