private ServiceRegistration defaultCallbackHandlerReg;
private static SecurityUiPlugin plugin;
+ private static BundleContext bundleContext;
public static InheritableThreadLocal<Display> display = new InheritableThreadLocal<Display>() {
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
+ bundleContext = context;
defaultCallbackHandler = new DefaultCallbackHandler();
defaultCallbackHandlerReg = context.registerService(
public void stop(BundleContext context) throws Exception {
plugin = null;
+ bundleContext = null;
defaultCallbackHandlerReg.unregister();
super.stop(context);
}
return plugin;
}
+ public static BundleContext getBundleContext() {
+ return bundleContext;
+ }
+
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}