Select module in Project Tree from a Module instance?
Answered
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!
Please sign in to leave a comment.
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