Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Retrieve feature plugins
Retrieve feature plugins [message #532986] Tue, 11 May 2010 18:35 Go to next message
Mario Cervera is currently offline Mario CerveraFriend
Messages: 66
Registered: July 2009
Member
Hi,

does anyone know how to programatically retrieve the list of plugins given a
feature id?

Regards,

Mario
Re: Retrieve feature plugins [message #533115 is a reply to message #532986] Wed, 12 May 2010 09:52 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Mario Cervera a écrit :
> Hi,
Hi,

> does anyone know how to programatically retrieve the list of plugins given a
> feature id?
You should have a look at the implementation of the listener on the "Plug-in Details" button of the InstallationDialog.

HTH
--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Retrieve feature plugins [message #533155 is a reply to message #533115] Wed, 12 May 2010 12:55 Go to previous messageGo to next message
Mario Cervera is currently offline Mario CerveraFriend
Messages: 66
Registered: July 2009
Member
Thanks for the idea :-). I had solved the problem using internal code from
org.eclipse.update.internal.configurator but I'd like to avoid that.

Can you show me in which Eclipse plug-in that listener is? I've been
searching for it for a while but I can't seem to find it.

Mario

"Mickael Istria" <mickael.istria@bonitasoft.com> escribi
Re: Retrieve feature plugins [message #533163 is a reply to message #533155] Wed, 12 May 2010 13:08 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Mario Cervera wrote:
> Thanks for the idea :-). I had solved the problem using internal code from
> org.eclipse.update.internal.configurator but I'd like to avoid that.
>
> Can you show me in which Eclipse plug-in that listener is? I've been
> searching for it for a while but I can't seem to find it.

Look for subclasses of org.eclipse.ui.about.InstallationPage ... there's
a lot of code that abstracts where the information in the system is
coming from.

But most of the information is retrieved from API in
org.eclipse.ui.internal.dialogs.AboutDialog.AboutDialog(Shel l):

IBundleGroupProvider[] providers = Platform.getBundleGroupProviders();
LinkedList groups = new LinkedList();
if (providers != null) {
for (int i = 0; i < providers.length; ++i) {
IBundleGroup[] bundleGroups = providers[i].getBundleGroups();
for (int j = 0; j < bundleGroups.length; ++j) {
groups.add(new AboutBundleGroupData(bundleGroups[j]));
}
}
}



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:how do i see the log of commons logging?
Next Topic:How to Hide import/export function in context menu
Goto Forum:
  


Current Time: Fri Apr 26 10:44:04 GMT 2024

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

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

Back to the top