来自多个插件的 RCP 扩展
我有 RCP 和 2 个基于功能的产品。我有 my.project.gui 插件,它有一些 gui 扩展,如视图、透视图、prefetencePages。等等..
第一个产品有一些 gui(该产品的功能包括 my.project.gui)。我希望我的第二个产品有一些扩展的图形用户界面。我创建了名为 my.project.gui.extended 的插件,并将其添加到我的第二个项目功能中。然后向 my.project.gui.extended 添加一些 gui-excensions。但这不起作用!我启动了第二个产品,但只看到 my.project.gui-extensions,而没有看到 my.project.gui.extended-extensions。
尝试将 my.project.gui.extended 添加到所有依赖项,但这并没有解决问题。
我需要做些什么才能使这项工作成功吗?或者我需要以其他方式完成这份工作?
=====================================
添加信息:
1st product feature has:
my.product.main1 (plugin with 1st product, application class, etc... has gui in dependences),
my.product.gui,
my.product.shared,
my.product.others1
2nd product feature has:
my.product.main2 (plugin with 2nd product, application class, etc... has gui and gui.extended in dependences),
my.product.gui,
my.product.gui.extended,
my.product.shared,
my.product.others2
扩展类型为 org.eclipse.ui.preferencePages (第二个产品有服务器首选项页面,但第一个没有)
我认为这不是运行时问题。
I have RCP, and 2 products, based on fetures. I have my.project.gui plugin, that have some gui-extensios, like views, perspectives, prefetencePages. etc..
First product have some gui (feature of this product includes my.project.gui). And I want to my second product to have some extended gui. I created plugin, named my.project.gui.extended and added it to my second project feature. Then added some gui-excensions to my.project.gui.extended. But this doest work! I lauch my second product and see only my.project.gui-extensions, and dont see my.project.gui.extended-extensions.
Tried to add my.project.gui.extended to all dependences, but this didnt solve problem.
Is there any things i need to do to make this work? Or I need to this job in some other way?
===================================
Added information:
1st product feature has:
my.product.main1 (plugin with 1st product, application class, etc... has gui in dependences),
my.product.gui,
my.product.shared,
my.product.others1
2nd product feature has:
my.product.main2 (plugin with 2nd product, application class, etc... has gui and gui.extended in dependences),
my.product.gui,
my.product.gui.extended,
my.product.shared,
my.product.others2
type of extention is org.eclipse.ui.preferencePages (2nd product has server preference page, but 1st doesn't)
i think this is not runtime problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过将此扩展添加到 my.product.main2 而不是 my.product.gui.extended 解决了我的问题。这不完全是我想要的,但它有效
Solved my problem by adding this extensions to my.product.main2, not to my.product.gui.extended. This is not exectly what i wanted, but it works