| [news.eclipse.tools.jdt] Re: Find the IType for a class |
The IJavaProject.findType(String) method should find any type which is on
the project classpath. So, if your jar is on your project classpath (it should
be the case, I guess), then you could use this method to find any type in it.
If you cannot find a type in your jar although it is on your classpath, then
first verify that the given name is well qualified or that it is not a secondary
type (see javadoc comment of the method). If the given parameter is correct
then open a bug against JDT/Core component with a detailed description of your
project configuration, the jar file containing the type you're trying to find
using this method, thanks
Rupinder wrote:I am trying to write a plugin that needs its launcher to extend the JUnitLaunchConfiguration. Unfortunately, the JUnitLaunchConfiguration uses
project.findType(className)
to the IType of the test class to be launched. In my case the test class I want to launch is not a part of the project but is in the plugin jar. Is there a way for me to get to the IType if the class file is in the plugin and not the java project ?