As stated in the title, I do not have the package names or information. I have a handle to the IProject and a String representing the name of the IFile.
The IFile is a .java
class file, and the IProject is a Java project. Ideally, I would like to do this without assuming they are Java files/projects - but the assumption is okay for my purposes. Any suggestions?
If you want to get the file from IProject recursively, you can use IProject#members.
Example)
You can call the method as follows.
If you want to find the file not recursively, you can use IProject#findMembers(String).