Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » eclipse v3.4 API to Get List of Installed features(eclipse v3.4 API to Get List of Installed features)
eclipse v3.4 API to Get List of Installed features [message #531411] Tue, 04 May 2010 19:07 Go to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
Does eclipse v3.4 have API to return a list of installed features within eclipse during runtime?
Re: eclipse v3.4 API to Get List of Installed features [message #531555 is a reply to message #531411] Wed, 05 May 2010 11:54 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

See IBundleGroupProvider and IBundleGroup ... try
org.eclipse.core.runtime.Platform.getBundleGroupProviders()

PW

--
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


Re: eclipse v3.4 API to Get List of Installed features [message #531723 is a reply to message #531555] Wed, 05 May 2010 22:08 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
Tried your recommendation and add IBundleGroup to a list as
IBundleGroupProvider[] bgrpProviders = org.eclipse.core.runtime.Platform.getBundleGroupProviders();
if( bgrpProviders != null ){
for(IBundleGroupProvider bgrpProvider: bgrpProviders){
if( bgrpProvider != null ){
String providerName = bgrpProvider.getName();
IBundleGroup[] grps = bgrpProvider.getBundleGroups();
if( grps != null ){
for(IBundleGroup grp: grps){
if( grp != null ){
String id = grp.getIdentifier();
String name = grp.getName();
String ver = grp.getVersion();
list.add("Provider "+providerName+"[id="+id+",name="+name+",ver="+ver+"] ");
}
}
}
}
}
}

found that it only found a limited set of features installed in the user's workspace but not all of them.

Any idea?

Thanks in advance!
Re: eclipse v3.4 API to Get List of Installed features [message #531883 is a reply to message #531723] Thu, 06 May 2010 13:12 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

This API will provide features installed in the running eclipse instance.

They won't provide any information about what's in the workspace. Are
you trying to find out what's in the user's workspace?

PW

--
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


Re: eclipse v3.4 API to Get List of Installed features [message #532009 is a reply to message #531883] Thu, 06 May 2010 18:19 Go to previous message
Hao Missing name is currently offline Hao Missing nameFriend
Messages: 115
Registered: July 2009
Senior Member
Sorry for confusing.

I want to get features installed in the running eclipse instance.

But it does not provide all features installed in the running clipse instance.

Previous Topic:Why does Junit Plugin Test launch a workspace?
Next Topic:Get co
Goto Forum:
  


Current Time: Fri Mar 29 00:11:46 GMT 2024

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

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

Back to the top