Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to get Bundle
How to get Bundle [message #286038] Wed, 01 June 2005 01:10 Go to next message
Eclipse UserFriend
Originally posted by: shaiju.exorindia.com

Hi All
Platform.getBundle(String symbolicName) accepts the symbolic Name of the
Bundle .Is that the same as the plugin Id ? or where from I get the
symbolic name ?

Thanks In advance
Shaiju.P
Re: How to get Bundle [message #286048 is a reply to message #286038] Wed, 01 June 2005 08:14 Go to previous message
Eclipse UserFriend
Shaiju wrote:
> Hi All
> Platform.getBundle(String symbolicName) accepts the symbolic Name of the
> Bundle .Is that the same as the plugin Id ? or where from I get the
> symbolic name ?

Yup. I think it was a renaming to make is more abstract.

You can use Platform.getExtensionRegistry() to get the IExtensionRegistry.
You can use IExtensionRegistry.getExtension() to get the IExtension. You
can use IExtension.getNamespace() to get the "namespace" that declares this
extension. That namespace is the plug-in id, and can be used in
Platform.getBundle().

You can also use IExtensionRegistry.getNamespaces() to list all of the
namespaces (plugins. mostly) that register extensions.

Later,
Paul
Previous Topic:Error when activating Bundle
Next Topic:Retrive all classes into a package
Goto Forum:
  


Current Time: Fri Jul 18 07:19:50 EDT 2025

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

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

Back to the top