Find an IType in the whole (non workspace) classpath [message #913361] |
Sat, 15 September 2012 11:30 |
Eclipse User |
|
|
|
Hi JDT,
While trying to fix https://bugs.eclipse.org/bugs/show_bug.cgi?id=389022 I have stumbled on a need to do this:
I have an IProject p; it is a plugin project so it has some dependencies but none of them is in the workspace (all in the target platform). I need to search for an IType t for which I have the FQN.
The JavaCore.create(p).findType(fqn) returns null if the type isn't around in the workspace.
The fact is that I may want to find a reference to t in the case that this t is in a project dependency in the target platform. So rephrasing: having a FQN and insurance that it is on the classpath but in the Target Platform (not in workspace), how can I get a reference to t ?
Thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03422 seconds