PluginRegistry.getExternalModels ??? [message #34076] |
Fri, 21 November 2008 19:08 |
Stephane fournier Messages: 340 Registered: July 2009 |
Senior Member |
|
|
Hi,
I want to query a plug-in installed in the target platform referenced by
a current running Eclipse IDE.
To do that, I'm using PDE APIs.
IPluginModelBase[] targetPlatformModels =
PluginRegistry.getExternalModels();
From retrieved IPluginModelBase instances, I lookup for those that have
an extension matching a specific extension-point id.
I use the method IPluginModelBase.getExtensions() that returns
IExtensions and I get all registered extensions from
IExtensions#getExtensions.Then, I test them against the search one.
Once retrieved, I want to have access to retrieved extension data.
I call the getChildren method on retrieved IPluginExtension.
But getChildren() returns an empty array of IPluginObject. Weird because
data are well defined. If I open the manifest editor on that plug-in,
it shows me the extension with its data.
If, I use the same code to search an extension declared on a plug-in
located in the workspace, that works perfectly.
Hence, I don't understand what I have missed.
I have tried to debug the ManifestEditor when we open it from the
plugins view but I failed to figure out my issue.
Does anyone have an idea ?
Any help would be appreciated.
Stephane.
|
|
|
Powered by
FUDForum. Page generated in 0.03287 seconds