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

Hi,

In order to implement checking of custom access rules I need to find out
which plug-in actually provides a given resolved class.
This behavior shall be plugged into the JavaBuilder and/or the Compiler.
It seems the required information is not available at any single point.
- a JavaProject knows its RequiredPluginsClasspathContainer but already here
 the list of required bundles is flattened into a list of classpath entries.
- any class resolution operates on this flattened classpath, with no reverse
 link to the providing plug-in.

Is there any API that would answer such a question? To illustrate the 
question, the following signature would be perfect for my task:
        /**
         * @param compoundName fully qualified name of a class
         * @return the symbolic name of a plug-in exporting the given class
         */
        String JavaProject.findDeclaringPlugin(char[][] compoundName)

Of course similar API could be used to provide the same information.

thanks for any hints,
Stephan