Community
Participate
Working Groups
Build Identifier: M20110909-1335 When developing in Eclipse, I often find that I don't have some plugin I need to compile my code. Sometimes it is a trivial process to figure out which feature I need to install to get that plugin or package, but other times, it can take quite awhile. I would like a tool that would: given a plugin or Java package name, provide the name or names of features which provide that plugin/package. This may sound unrelated, but in principle it's the same as the "yum whatprovides <some_file_or_library>" in Redhat Linux. That command is not need really often, but when you need it, it often saves an enormous amount of time. Reproducible: Always
If you have a class, then you can look up the bundle via: ((BundleReference)clazz.getClassLoader).getBundle() PackageAdmin.getBundle(Class) But it sounds like you want to look something up against a repository rather than in your running instance. This can most likely be done using the query language. Information can be found here: http://wiki.eclipse.org/Query_Language_for_p2 Also I'll add Thomas to the CC as he might be able to help with constructing a query. But I can't see us creating API to do this, so I'll close this report.
I don't need an API. I want a UI feature that I can use to figure out which feature I need to install from a repository.