5

I have a plugin which is the host of fragment A & B. I export a package using Export-Package header from fragment A. Hopefully I can import that package in fragment B using Import-Package header. But the PDE reports that the dependency is unresolved. Is it possible at all using this scenario ? The following post http://www.eclipse.org/forums/index.php/t/238204/ confirms that it is.

Any help would be greatly appreciated.

Thanks & Regards,

Setya

4

1 回答 1

13

所描述的场景在运行时是完全可能的,但是 PDE 在构建时不知道依赖关系。您需要将标头添加Eclipse-ExtensibleAPI: true到片段 A的主机包中。

重申一下,此标头仅在 PDE 构建时使用,而不是 OSGi 标头。

于 2011-09-06T17:14:40.323 回答