如何删除“文件搜索”对话框页面 [英] How to remove the 'File Search' dialog page
问题描述
我刚刚使用 org.eclipse.search实现了我自己的
扩展名。它工作正常,但是我无法删除默认情况下在搜索对话框中显示的File Seach对话框页面。 ISearchPage
searchPages
任何想法?
似乎使用扩展名 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屋!