I'm writing a plugin that will parse a file to find a package and class statement as follows:
I then want to open the sourcefile that corresponds with the particular class.
I am currently doing the following:
This works as long as the source file can be found in my source directory. However, the source could potentially be found a source directory defined in a library (global or project).
Do I need to loop through all of the VirtualFileSystems looking for the file, or is there a better way?