在Eclipse RCP中为状态栏/修剪做出贡献 [英] Contributing to the Status Bar/Trim in Eclipse RCP

查看:189
本文介绍了在Eclipse RCP中为状态栏/修剪做出贡献的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Eclipse应用程序的状态栏中显示一个状态指示器。我无法通过ApplicationWindowAdviser(另一个团队拥有核心产品)进行贡献,但是我确信我应该能够通过扩展点进行贡献。尽管进行了很多搜索,但我找不到任何描述方法。

I have a requirement to show a status indicator in the status bar of an Eclipse application. I can't contribute through the ApplicationWindowAdviser (another team owns the core product), but I feel sure that I should be able to contribute through an extension point. Despite much googling, I can't find anything describing how to do this.

推荐答案

在org.eclipse.ui.menu中扩展程序,请使用 toolbar:org.eclipse.ui.trim.status作为locationURI。您可以在状态栏中添加命令/自定义控件。

In the org.eclipse.ui.menuContributions extensions, use "toolbar:org.eclipse.ui.trim.status" as the locationURI. You can contribute commands/custom controls to the status bar.

这篇关于在Eclipse RCP中为状态栏/修剪做出贡献的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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