是否可以在 Eclipse 中隐藏/删除任意上下文菜单项(3.6)
我的问题可以分为三个:
是否可以通过...
- 标准 UI 隐藏/删除 Eclipse (3.6) 中的任意上下文菜单项?
- 一些现有的插件?
- 自定义插件?
我没能找到通过方法 1 和 2 来做到这一点的方法。如果唯一的选择是创建自定义插件,任何人都可以将我推向正确的方向(我在 Java 方面有一些经验,但在 Eclipse 插件方面没有经验)插入)。
My question can be split into three:
Is it possible to hide/remove arbitrary context menu items in Eclipse (3.6) by ...
- standard UI?
- some existing plug-in?
- custom plug-in?
I failed to find ways to do this by methods 1 and 2. If the only option is creating custom plug-in, could anyone push me towards the right direction where to start (I have some experience in Java, but not in Eclipse plug-ins).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过标准 GUI 隐藏菜单或菜单项: 查看帮助
但这会在所有它所在的菜单(上下文或非上下文)中隐藏该条目。
因此,它可能不会像您通过 GUI 想要的那样细粒度。
您还可以通过插件尝试(另请参阅菜单贡献)
考虑到你正在谈论最新的 Eclipse,我将仅复制第一种方式:
You can hide menus or menu entries through the standard GUI: see help
But that will hide this entry from all the menus (contextual or not) in which it is present.
So it may not be as fine-grained as you want through the GUI.
You can also try it through a plugin (see also Menu contribution)
Considering you are talking about the latest Eclipse, I will copy only the first way: