How to remove the 'File Search' dialog page

放肆的年华 提交于 2020-01-06 07:58:11

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/12838894/how-to-remove-the-file-search-dialog-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!