Select module in Project Tree from a Module instance?
已回答
Hello,
Given that I have an instance of a com.intellij.openapi.module.Module, how would I go about focusing and expanding the respective module in the Project Tree?
Thanks!
请先登录再写评论。
Try with:
Hi Jakub,
For some reason when I use the code below, the module passed is not selected. The project view gets focused, but is is the current module that shows up.
However, the following did the trick, not sure why:
Took the virtual file example from here: https://www.programcreek.com/java-api-examples/?api=com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode