Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to get BundleContext of a plugin?
How to get BundleContext of a plugin? [message #906022] Fri, 31 August 2012 09:28 Go to previous message
Kosala Yapa is currently offline Kosala Yapa
Messages: 133
Registered: September 2010
Senior Member
Hi,

Can someone tell me how to get BundleContext of a plugin?

I used,
BundleContext bc=FrameworkUtil.getBundle(new com.kosala.model.src.Activator().getClass()).getBundleContext();

This gives:
Exception in thread "main" java.lang.NullPointerException.

Thanks
K
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Create actions eats up eclipse
Next Topic:Validating the workspace Path
Goto Forum:
  


Current Time: Sat May 25 15:42:11 EDT 2013

Powered by FUDForum. Page generated in 0.01610 seconds