How to get the IEclipseContext in an activator

前端 未结 3 546
不思量自难忘°
不思量自难忘° 2021-01-12 17:40

I got stuck on one problem with an Eclipse 4 RCP application. I need to log some events. I need obtain somehow a reference to the logger. I know, how to do that using

3条回答
  •  孤独总比滥情好
    2021-01-12 18:00

    You can get a specialized IEclipseContext by calling EclipseContextFactory.getServiceContext(bundleContext) which will allow access to OSGi services.

提交回复
热议问题