在Eclipse RCP应用程序中禁用插件贡献 [英] Disable plugin contributions in Eclipse RCP Application
问题描述
大多数这些贡献(菜单项,键盘快捷键,属性页)都是有用的,但有时我宁愿禁用其中的一些贡献,因为我真的不需要它们,他们可能有没有人知道官方或实际的方法来禁用/禁止Eclipse RCP应用程序中的选定贡献?
查看Eclipse活动API。
几个链接:
- http://wiki.eclipse.org/FAQ_How_do_I_add_activities_to_my_plug-in%3F
- http:// www。 vogella.de/blog/2009/07/13/eclipse-activities/
- http://random-eclipse-tips.blogspot.com/2009/02/eclipse-rcp-removing-unwanted_02.html
- http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_scalability.htm
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:
- http://wiki.eclipse.org/FAQ_How_do_I_add_activities_to_my_plug-in%3F
- http://www.vogella.de/blog/2009/07/13/eclipse-activities/
- http://random-eclipse-tips.blogspot.com/2009/02/eclipse-rcp-removing-unwanted_02.html
- http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_scalability.htm
这篇关于在Eclipse RCP应用程序中禁用插件贡献的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!