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 #585672] Fri, 21 November 2008 19:08
Stéphane  ournier is currently offline Stéphane ournierFriend
Messages: 317
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:PluginRegistry.getExternalModels ???
Next Topic:Eclipse Events
Goto Forum:
  


Current Time: Sat Sep 25 16:26:36 GMT 2021

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

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

Back to the top