如何确定哪些eclipse插件对菜单和工具栏有所贡献并停止它们 [英] How to determine which eclipse plugins are contributing to menus and toolbars and stop them

查看:92
本文介绍了如何确定哪些eclipse插件对菜单和工具栏有所贡献并停止它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个使用大量第三方插件的RCP应用程序。其中一些插件提供了我不希望显示的菜单,菜单项和工具栏按钮。如何确定哪些插件在贡献这些菜单,菜单项和工具栏按钮,以及如何禁止它们这样做?

I am creating an RCP app which uses a host of third-party plugins. Some of these plugins contribute menus, menu items, and toolbar buttons that I do not wish to display. How can I determine which plugins are contributing these menus, menu items, and toolbar buttons and how can I disable them from doing so?

推荐答案

要检查菜单,工具栏内容等的详细信息。

To inspect details of menu, toolbar contributions etc.


  • 通过包含RCP应用程序将Eclipse Plug-in Spy加载到RCP应用程序中,在 org.eclipse.pde.runtime

  • 要检查当前选择,请按ALT-SHIFT-F1

  • 要检查菜单,请按ALT-SHIFT-F2,然后选择菜单项

使用活动删除UI贡献。 ALT-SHIFT-F2提供的活动操作定义标识符值是用作activityPatternBinding规范中的模式的值。有关删除不需要的UI贡献的更多信息,请参见此问题。

Use activities to remove the UI contribution. The "active action definition identifier" value provided by ALT-SHIFT-F2 is the one to use as the pattern in the activityPatternBinding specification. See this question for more info on removing unwanted UI contributions.

请注意,在使用活动删除不需要的UI贡献时,有时您需要指定UI贡献的插件ID,有时则不必依赖于个人

Note that when using activities to remove unwanted UI contributions, sometimes you will need to specify the UI contributions' plug-in id and sometimes you won't depending on the individual contribution.

NB:插件注册表视图也可用于查找贡献的ID,尽管您必须这样做一些搜索。

NB: The Plug-in Registry view can be also used to find the IDs for contributions, although you'll have to do some searching.

这篇关于如何确定哪些eclipse插件对菜单和工具栏有所贡献并停止它们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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