在Eclipse RCP应用程序中禁用插件贡献 [英] Disable plugin contributions in Eclipse RCP Application

查看:118
本文介绍了在Eclipse RCP应用程序中禁用插件贡献的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常遇到这个问题,还没有找到解决方案:每当我编写一个新的基于Eclipse RCP的应用程序,并且从Eclipse平台中添加插件,我会继承这些插件中的UI贡献。



大多数这些贡献(菜单项,键盘快捷键,属性页)都是有用的,但有时我宁愿禁用其中的一些贡献,因为我真的不需要它们,他们可能有没有人知道官方或实际的方法来禁用/禁止Eclipse RCP应用程序中的选定贡献?

解决方案

查看Eclipse活动API。



几个链接:




I frequently had this problem and didn't find a solution yet: Whenever I write a new Eclipse RCP based application and include plugins from the Eclipse platform, I 'inherit' UI contributions from some of those plugins.

Most of this contributions (menu entries, keyboard shortcuts, property pages) are useful but sometimes I'd rather disabled some of these contributions, just because I really do not need them and they might confuse the users.

Does anyone know of the official or a practical way to disable/prohibit selected contributions in Eclipse RCP applications?

解决方案

Take a look at the Eclipse "Activities" API. It allows you to hide contributions based on ID.

A few links:

这篇关于在Eclipse RCP应用程序中禁用插件贡献的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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