Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Obtain bundle context
Obtain bundle context [message #63515] Thu, 29 November 2007 19:07 Go to next message
Eclipse UserFriend
Originally posted by: joao.nuno.santos.silva.gmail.com

Hi,

Can anyone tell me how can I obtain the BundleContext for a bundle that
was already activated?
Thanks!
João Nuno
Re: Obtain bundle context [message #63539 is a reply to message #63515] Fri, 30 November 2007 07:54 Go to previous messageGo to next message
Martin Dilger is currently offline Martin DilgerFriend
Messages: 54
Registered: July 2009
Member
Hi,

normally you could do something like this:
Platform.getBundle("MyBundleID").getBundleContext();

Bye!

Martin
Re: Obtain bundle context [message #63674 is a reply to message #63539] Fri, 30 November 2007 14:28 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,

As an alternative you can register a PluginActivator in your manifest.
The bundle context is passed to the start() method which is called, when
the bundle is loaded.

Regards,
Stefan.

Martin schrieb:
> Hi,
>
> normally you could do something like this:
> Platform.getBundle("MyBundleID").getBundleContext();
>
> Bye!
>
> Martin
>
Previous Topic:Can't set font with ColumnLabelProvider
Next Topic:Call EJB from RAP on JBoss
Goto Forum:
  


Current Time: Fri Jan 03 05:16:56 GMT 2025

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

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

Back to the top