Getting URL for module in the Project tree view
I'm trying to add a message to a CompileContext so that it points to a module in the Project tree view.
The best I could do is this, with module being a Module:
module.getModuleFile().getParent().getUrl()
However this doesn't work if the module has multiple content roots.
Because the URL will point to the folder containing the .iml file.
And if there are multiple content roots this folder doesn't coincide with the module node in the Project tree view.
Any suggestions?
Please sign in to leave a comment.