去掉Eclipse RCP中的多余默认按钮(Next Annotation、Previous Annotation、Last Edit Location)
来源:互联网 发布:动态最优化基础 pdf 编辑:程序博客网 时间:2024/05/29 09:01
在开发Eclipse RCP程序时,工具栏中默认会有三个按钮(Next Annotation、Previous Annotation、Last Edit Location),一直觉得很多余,找了很久才找到如何把他们去掉的方法。
原文:在eclipse RCP application项目中 去掉 Next Annotation 等图标
我用RCP做了一个APP项目,用到了org.eclipse.ui.editor插件来实现我的多页面编辑器。结果,发现我的APP的工具栏始终存在一些button 去不掉,如下图:
其实有两种办法可以把它去掉:
但是 首先 你得找到这个图标的来源ID
通过 eclipse 工作台中的 插件视图 查找:
、
定位 原来是 org.eclipse.ui.editors中的actionsets定义了该图标。
打开 org.eclipse.ui.editors plugin.xml查看
好吧。找到了 ID:org.eclipse.ui.edit.text.actionSet.annotationNavigation
接下来可以用两个办法去掉
1、利用 扩展点 org.eclipse.ui.perspectiveExtensions 下的 hiddenToolBarItem
2. 利用 扩展点 org.eclipse.ui.activities两种办法任意选一个。建议使用第一种
用第二种正则表达式一定要注意,此方法会同时屏蔽掉CNF中的部分右键菜单(rename、delete等),还是推荐第一种啊;
参考http://blog.csdn.net/zhaoxy_thu/article/details/12193805
0 0
- 去掉Eclipse RCP中的多余默认按钮(Next Annotation、Previous Annotation、Last Edit Location)
- 去掉Eclipse RCP中的多余默认按钮(Next Annotation、Previous Annotation、Last Edit Location)
- 去掉Eclipse RCP中的多余默认按钮(Next Annotation、Previous Annotation、Last Edit Location)
- 去掉Eclipse RCP中的多余默认按钮
- RCP去掉eclipse默认控制台的视图bar按钮
- RCP去掉多余菜单
- CardLayout卡片布局(Firsh、Next、Previous、Last功能演示)
- Java中的注解(annotation)
- annotation
- Annotation
- Annotation
- Annotation
- Annotation
- Annotation
- Annotation
- Annotation
- annotation
- Annotation
- jquery去掉onclick事件
- VPU硬编码
- 如何在虚拟机中配置HTTP yum 源?
- ubuntu下添加模块搜索路径
- linux中nl命令使用介绍
- 去掉Eclipse RCP中的多余默认按钮(Next Annotation、Previous Annotation、Last Edit Location)
- jQuery操作ajax
- Javascript的shift()和push(),unshift()和pop()方法简介
- Android 仿微信多选和单选照片,拍照
- HTML中加入空格和Tab
- Linux下 git 免密登录
- docker gitlab启动参数
- Android获取屏幕宽高(px值)
- SharedPreferences