如何删除“文件搜索”对话框页面 [英] How to remove the 'File Search' dialog page

查看:272
本文介绍了如何删除“文件搜索”对话框页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在Eclipse中的搜索对话框中禁用文件搜索页面。



我刚刚使用 org.eclipse.search实现了我自己的 ISearchPage searchPages 扩展名。它工作正常,但是我无法删除默认情况下在搜索对话框中显示的File Seach对话框页面。
任何想法?

解决方案

似乎使用扩展名 org.eclipse.ui。

1.添加扩展名 org.eclipse.ui.activities

2.添加一个新的活动到这个扩展名为id(例如disable.default.search)

3.添加一个新的activityPatternBinding 到此扩展名,并将活动ID设置为活动(例如disable.default.search)的ID,将模式设置为org.eclipse.search。*



执行此操作将删除搜索对话框中的文件搜索选项卡以及应用程序中的搜索菜单。


Does anybody know how to disable the "File Search" page from the Search Dialog in an Eclipse.

I've just implemented my own ISearchPage using the org.eclipse.search.searchPages extension. It works perfectly but I wasn't able to remove the "File Seach" dialog page which is shown by default in the Search Dialog. Any ideeas?

解决方案

It seems like using the extension org.eclipse.ui.activities does the trick.
1.Add extension org.eclipse.ui.activities
2.Add a new activity to this extension with id (ex. disable.default.search)
3.Add a new "activityPatternBinding to this extension and set the activity id to the id of the activity (ex. disable.default.search) and set the pattern to org.eclipse.search.*

Doing this you will remove the "File Search" TabItem in the Search Dialog and also the Search menu from your Applicaiton.

这篇关于如何删除“文件搜索”对话框页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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