Eclipse RCP; “描述”有什么用? org.eclipse.ui.commands 命令的字段?

发布于 2024-09-15 00:24:47 字数 143 浏览 0 评论 0原文

向扩展 org.eclipse.ui.commads 添加命令时,有一个字段“name”和一个字段“description”。名称字段似乎在大多数地方都使用。什么时候会使用描述?

When adding a command to the extension org.eclipse.ui.commads, there is a field 'name' and a field 'description'. The name field seems to be used at most places. When will description be used?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终弃我 2024-09-22 00:24:48

org.eclipse.ui.commands 架构页面 提到:

描述 - 此命令的可翻译简短描述,用于在 UI 中显示。

这通常在需要显示命令的 Eclipse GUI 中可见,例如在“自定义透视”对话框的“命令组可用性”中:

alt text

(来自 自定义 Eclipse 用户界面)


注意:状态栏仅用于显示状态消息,不会显示那些命令说明。请参阅 Eclipse UI 指南 9.9

The org.eclipse.ui.commands schema page mentions:

description - A translatable short description of this command for display in the UI.

This is typically visible in Eclipse GUI where the commands need to be displayed, like in the "Command Groups Availability" of the "Customize Perspective" dialog:

alt text

(from Customizing the Eclipse User Interface)


Note: the status bar is for status message only and won't display those command descriptions. See Eclipse UI Guideline 9.9.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文