【发布时间】:2014-04-30 15:46:56
【问题描述】:
我正在尝试将 ECommandService 注入我的应用程序的一部分,并且我添加了插件 org.eclipse.e4.core.commands;bundle-version="0.10.2" 到我的应用程序(plugin.xml)的依赖项,但是当我声明
@Inject private ECommandService commandService;
我收到一条警告:
Discouraged access: The type ECommandService is not accessible due to
restriction on required library C:\Data\andrelop\transnet\eclipse-
kepler\plugins\org.eclipse.e4.core.commands_0.10.2.v20130515-1857.jar
这是正常的还是我添加了错误的依赖项?
【问题讨论】:
标签: java osgi eclipse-rcp e4