Get Eclipse Context

In e4 there are multiple contexts available. One of those contexts can be active.

To get an Eclipse service into an OSGi component the Eclipse context can be used. The Eclipse context can be retrieved through the bundle context.

Bundle bundle = FrameworkUtil.getBundle( MyLogManager.class );
IEclipseContext context = EclipseContextFactory.getServiceContext( bundle.getBundleContext());
The downside of this is that your pure OSGi bundle now depends on e4 packages and the context only holds OSGi service, no e4 services.