[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: API for finding the plugin providing a given class?

Stephan,
if it's compile-time, then you're right it's very close between JDT and PDE.
To verify, you're looking for an entry (either workspace project, or bundle on target) on the project classpath, that has a certain class.
You could find it with IJavaProject.findType(String packageName, String qualifiedName). Then you need a plugin, or generally a container that has this IType and extract it's bundle name from it somehow. I am not sure how to do the latter, but I guess it has something to do with "Plug-in dependencies" container.


I think it's best to ask the pde-dev mailing list (http://dev.eclipse.org/mailman/listinfo/pde-dev), as PDE doesn't have any newsgroup.

Stephan Herrmann wrote:
Hi Jacek,

sorry but JDT (Compiler/JavaBuilder) doesn't know of plugins.

I know this question is on the border-line between JDT and PDE. Is there a corresponding PDE forum, where I could ask for help?

Plugins are generally Equinox/OSGI or PDE responsibility, depending if you want
to manipulate some runtime, or develop plugins.

It's all at compile time. So I might not even have a bundle instance, since the bundle might be provided by another project in the workspace.

Multiple plug-ins providing the class is not a problem in my use-case.

thanks,
Stephan