[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Embedding Equinox OSGi and EclipseStarter

On 05/02/07, Jason Sankey <jason@xxxxxxxxxx> wrote:

How are you starting the framework? We use EclipseStarter.startup, which returns the BundleContext from the static OSGi instance. This sounds like exactly what you need.

Yes, that would work. I wanted to try and avoid diving down too much into the sequence of call actions, in case the previous calls (run and startup) were doing anything specific. For example, a call to startup() directly will miss out setting the last run of the framework.

Otherwise, it should work a treat. I'll try it tomorrow.

> I'm wondering whether you think it's a good idea to add something like
> this to EclipseStarter:
> public static BundleContext getSystemBundleContext() {
>  return osgi.getBundleContext();
> }

This addition probably also wouldn't hurt.

Cool. At least I'm on the right track. I've put a patch up at https://bugs.eclipse.org/bugs/show_bug.cgi?id=172969 if you're interested in tracking it.