public class SecurityAdminPlugin extends AbstractUIPlugin {
public static final String PLUGIN_ID = "org.argeo.security.ui.admin"; //$NON-NLS-1$
private static SecurityAdminPlugin plugin;
+ private static BundleContext bundleContext;
public SecurityAdminPlugin() {
}
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
+ bundleContext = context;
}
public void stop(BundleContext context) throws Exception {
plugin = null;
+ bundleContext = null;
super.stop(context);
}
return plugin;
}
+ public static BundleContext getBundleContext() {
+ return bundleContext;
+ }
+
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}