如何获取版权信息,以显示在我的Eclipse RCP应用程序的“关于”对话 [英] How do I get copyright information to show up in my Eclipse RCP application's "About" dialog

查看:180
本文介绍了如何获取版权信息,以显示在我的Eclipse RCP应用程序的“关于”对话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我在RCP应用程序中使用该操作时,关于对话框显示成功。

>

但是,当我想继续点击安装详细信息按钮,我得到一个带有选项卡的对话框。我导航到已安装的软件选项卡,并查看我的RCP产品的名称及其版本及其ID。我在表中选择这个项目,然后继续点击属性按钮。



一旦我在这里,我看到一个类似于Eclipse的Preference对话框的对话框。它有三个项目在左边选择...版权,一般信息和许可协议。



我已成功将我的许可证信息添加到我的.product文件当我点击许可协议,但... ...



我找不到我应该放置版权信息,以获得当我点击此对话框左侧列表中的版权项目时显示。



我在哪里添加这些信息,以便在此处显示?

解决方案

此信息来自p2 IInstallableUnit 。你用p2构建你的插件吗?
如果您实现p2更新,您应该可以看到这些信息。 p2 build将从feature.xml中复制此信息。



我正在解决这个问题:
我找不到我应该放在哪里当您点击此对话框左侧列表中的版权项目



此副本权限当您使用tycho构建时,您应该从功能组获取信息。



对于产品,只有许可证信息没有版权信息。您将副本权限信息放在feature.xml


I'm using Eclipse's IWorkbenchAction that shows the Eclipse About dialog.

When I use the action in my RCP application the About dialog shows up successfully.

But, when I think proceed to click the "Installation Details" button, I get a dialog with tabs. I navigate to the "Installed Software" tab, and see my RCP product's name along with its version, and its ID. I select this item in the table, then proceed to click the "Properties" button.

Once I'm here, I see a dialog that looks similar to Eclipse's Preference dialog. It has three items to select on the left... Copyright, General Information, and License Agreement.

I've successfully added my License information to my .product file in order to have it show up when I click the "License Agreement", but...

I can't find where I should put the copyright information in order to get it to show up when I click the "Copyright" item in the list on the left of this dialog.

Where do I add this information so that it will show up here?

解决方案

This information comes from p2 IInstallableUnit. Are you building your plugins with p2? if you implement p2 update you should be able to see this information. p2 build will copy this information from feature.xml.

I am addressing this question: "I can't find where I should put the copyright information in order to get it to show up when I click the "Copyright" item in the list on the left of this dialog"

This copy right information you should get it from feature group when you build with tycho.

For product, there is no copy right information only license info. you put copy right information in feature.xml

这篇关于如何获取版权信息,以显示在我的Eclipse RCP应用程序的“关于”对话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆