简体   繁体   English

Eclipse RCP-功能仅在产品导出后出现在“关于”对话框中,而在IDE中执行时不存在

[英]Eclipse RCP - feature only present in about dialog after product export, not when executed in IDE

I am working on the about-dialog of my Eclipse RCP Applicaiton. 我正在研究Eclipse RCP应用程序的“关于”对话框。

The features, which I am using (native platform features and my own) only show up, when I do an export from Eclipse. 从Eclipse导出时,仅会显示我正在使用的功能(本机平台功能和我自己的功能)。

When I run my product in the IDE - the about dialog stays empty. 当我在IDE中运行产品时,“关于”对话框将保持为空。 The feature icons do not show up. 功能图标不显示。

Question: Where is the problem? 问题:问题出在哪里?

About dialog, when the product was exported: 关于对话框,导出产品时:

在此处输入图片说明

About dialog, when the product is started inside of the IDE: 在IDE中启动产品时,关于对话框:

在此处输入图片说明

Although unexpected, I think that's normal. 尽管出乎意料,但我认为这很正常。 I see the same behavior in my RCP application. 我在RCP应用程序中看到了相同的行为。

Go to Window>Preferences . 转到Window>Preferences Under Plug-In Development>Target Platform , set up your target platform to match the product you are exporting. 在“ Plug-In Development>Target Platform ,设置目标平台以匹配要导出的产品。 You can use org.eclipse.rcp as a base and go from there, adding features from either Eclipse itself, or from a p2 repo. 您可以使用org.eclipse.rcp作为基础,然后从Eclipse本身或p2存储库中添加功能。

The default is to load the IDE itself as part of the runtime configuration. 默认是将IDE本身作为运行时配置的一部分加载。

That said, I am not sure the Features dialog actually works when running from within the IDE. 就是说,我不确定从IDE中运行“功能”对话框时是否真正起作用。 I remember from a while back that there was a limitation here, but unfortunately I can no longer find a reference to this. 我记得很久以前这里有一个限制,但是不幸的是我再也找不到对此的参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM