Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PluginRegistry.getExternalModels ???
PluginRegistry.getExternalModels ??? [message #34076] Fri, 21 November 2008 19:08
Stephane  fournier is currently offline Stephane fournierFriend
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.
Previous Topic:API Tooling Filter IDs Explained?
Next Topic:PluginRegistry.getExternalModels ???
Goto Forum:
  


Current Time: Thu Dec 26 20:20:37 GMT 2024

Powered by FUDForum. Page generated in 0.03287 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top