Eclipse 搜索菜单随机禁用
我在日常工作中使用Eclipse 3.3,并且也广泛使用Eclipse 3.2。 在这两个版本中,有时菜单中的搜索选项(Java 搜索、文件搜索等)会被禁用,看起来是随机的。 但是,通过 Ctrl+H,我可以访问搜索功能。 有谁知道为什么会发生这种情况? Eclipse 3.4 中已修复此问题吗?
I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl+H, I am able to access the search functionality. Does anyone know why this happens? Has it been fixed in Eclipse 3.4?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(18)
我认为这个答案是你们解决所有版本问题所需要的。
我正在使用 RAD 8,我也遇到了这个问题,我删除了(当前使用的工作空间)
workspace/metadata/plugins
文件夹中的org.eclipse.search
目录,然后重新启动蚀。就这样。
I think this answer is what you all need to solve the issue on all versions.
I am using RAD 8 and I have also faced this problem than I removed
org.eclipse.search
directory in (workspace currently using)workspace/metadata/plugins
folder then restart the eclipse.That's all.
窗口> 关闭所有视角对我有用。
window > close all perspective works for me.
使用 Eclipse 4.3(!),在进行区分大小写的搜索后,我发生了这种情况。
窗口 -> 关闭所有透视图
并没有修复它,使用-clean
重新启动 Eclipse 也没有修复它。 在摆弄搜索框时,我发现只需单击上一个搜索条目就可以编辑它并再次搜索! 单击返回区分大小写的搜索,该选项再次变灰。因此,在重置工作区中的任何内容之前,请尝试使用向下箭头拉出旧的搜索条目。
Using Eclipse 4.3(!) this happened to me after doing a case-sensitive search.
Window -> Close All Perspectives
didn't fix it and neither did restarting Eclipse using-clean
. While messing with the search box, I discovered that simply clicking to a previous search entry allowed me to edit it and search again! Clicking back to the case-sensitive search grayed the option out again.So before you reset anything in your workspace, try pulling up an older search entry using the Down Arrow.
我正在使用在 Eclipse 3.4 上运行的 RAD 7.5.1,并且经常遇到这个问题,令人沮丧。 我处于哪个视角或视图,或者打开哪个编辑器并不重要。
重新启动 RAD 通常会清除它,但因为这是一个巨大的痛苦,我发现你可以在搜索视图中绕过它,有一个链接; “从搜索对话框开始搜索”这将打开搜索对话框。
这不是一个很好的解决方法,因为该链接仅在您没有搜索历史记录时才会显示。 要进行另一次搜索,您必须清除视图中的搜索历史记录。
I'm using RAD 7.5.1 which runs on Eclipse 3.4 and I get this problem frustratingly often. It doesn't matter which perspective or view I'm in, or which editor I have open.
Restarting RAD usually clears it up, but because that's such a colossal pain, I found that you can get around it in the Search View, there is a link; "Start a search from the search dialog" which will bring up the search dialog.
This isn't a great workaround because the link only shows if you have no search history. To do another search, you'll have to clear your search history in the view.
仍然存在于 Eclipse 3.5.2 中——并且第一次真正具有粘性。
我查看了“关闭所有打开的文件并随后打开任何其他文件”的答案,并带回了“搜索”菜单项。 此外,如果您幸运并且打开了搜索结果视图,那么确实有这个小链接“打开搜索对话框”。
顺便说一句,另外许多其他与项目相关的菜单项似乎也与此一起变灰,并且它们没有复活:-(但我并没有真正检查这些是否只是有用和计划的项目在这种情况下会变灰。
Still present in Eclipse 3.5.2 -- and for the first time really sticky.
I checked out the "close all opened files and open any other file afterwards" answer and that brought back the Search menu items. Additionally, if you were lucky and have the Search result view open, than indeed there is this little link "Open search dialog".
By the way, additionally lots of other project-related menu items seem to be greyed out also together with this, and they did not reanimate :-( But I did not really check out if these are only items for which it is useful and planned to be greyed out in this situation.
该死! 我也有这个问题——在 Eclipse 3.4.2 中。
似乎与导航器和项目资源管理器视图相关:
- 切换到调试视角:搜索菜单项在那里。
- 切换到 Java 或 Java EE 视角:搜索菜单项仍然存在。
- 单击导航器或项目资源管理器中的项目:搜索菜单项全部禁用。
(该死!我经常在选定的资源中使用搜索!)-:
嗯...这可能还取决于编辑器中当前打开的文件类型。 (就像 Java 与 xml 之争一样。)
Darn! I have that problem too -- in Eclipse 3.4.2.
Seems to be related to Navigator and Project Explorer views:
- Switch to Debug perspective: Search menu items are there.
- Switch to Java or Java EE perspective: Search menu items still there.
- Click on a project in Navigator or Project Explorer: Search menu items all DISABLED.
(Curse! I use search in Selected Resources a lot! )-:
Hmmm... It may slso depend on the file type currently open in the editor. (Like Java vs xml.)
我没有确切的答案。 我建议您尝试将禁用与激活的透视图关联起来。 同样,哪个视图处于活动状态。 我一直使用3.4,没有遇到这个问题。
I don't have an exact answer. I will recommend that you try to correlate the disablement with which perspective is active. Likewise, which view is active. I have been using 3.4 and not experienced this issue.
窗口> 关闭所有观点也对我有用。
但是,如果您只是在项目中查找文本搜索,则可以在标记的文本上按 Ctrl+Alt+G
window > close all perspectives worked for me too.
But if you are just looking for a text search in the project you could press Ctrl+Alt+G on a marked text
在搜索之前,检查您是否可以在空工作集中选择范围。 大多数搜索菜单在您选择搜索按钮时会禁用它。 还有我的:)
Before search, check you may choose scope in empty Working set. Most Search menu disables Search button when you choose it. And mine, too :)
对于任何被这个问题困扰的人来说,这是一个迟来的评论,但我发现“eclipse -clean”修复了它=> 这会在开始之前清理工作区
谢谢 http://在我猜测我的工作区可能已损坏之后,letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/ 获取提示。
A late comment for anyone getting bitten by this, but I found "eclipse -clean" fixed it => this does a cleanup of the workspace before starting
Thanks http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/ for the tip, after I guessed my workspace might be corrupt.
我在 eclipse 3.6.2: Helios Service Release 1 中也遇到了这个问题。
关闭了所有编辑器窗口,并且已启用搜索。
I had this issue also in eclipse 3.6.2: Helios Service Release 1.
Closed all the editor windows, and the search has been enabled.
我时常遇到这个问题。
过去我通过使用 -clean 选项启动 eclipse 来修复此问题。
有一次,当这不起作用时,我创建了一个新的工作区。
我按照这些说明获取这两个解决方案。
今天,清理选项对我不起作用,我找到了这个线程,因为我不想创建新的工作区。 然而,关闭所有文件并重新打开一个文件确实有效。
I get this problem from time to time.
In the past I've fixed by starting eclipse with the -clean option.
Once when that didn't work I created a new workspace.
I followed these instructions for those two solutions.
The clean option didn't work for me today and I found this thread because I didn't want to create a new workspace. The closing all files and reopening one file did work however.
即使重新启动 Eclipse,我也无法让它工作。
这对我有用:关闭所有打开的文件并打开另一个文件。 不同的文件恰好是 .java,但不确定这是否与之有关。
I couldn't get it to work even when restarting Eclipse.
Here's what worked for me: Closing all open files and opening a different file. The different file happened to be .java, but not sure if that had anything to do with it.
切换到另一个视角然后再返回,对我来说很快就会起作用。
Switching to another perspective, then back, works quickly for me.
刚刚在 Eclipse Neon 3 中遇到了这个问题。这是 RAD 中非常常见的问题。 我可以在控制台中找到使用,然后切换回源并搜索。 RAD 将禁用每个打开的源文件的查找/搜索选项。 这非常令人沮丧。
Just had this problem in Eclipse Neon 3. It is a very common problem in RAD. I could find using in the console, then switch back to the source and search. RAD would disable the find/search options per source file open. This is very frustrating.
我也有这个问题。 当我安装m2eclipse插件时出现的。
我还没有找到解决方案,但您可以使用 Ctrl+H 快捷键代替。
您可以使用 Ctrl+PgDown 或 Ctrl+PgUp 键在选项卡之间导航。
我已经卸载了以下插件并且它有效。
我不知道哪一个导致了问题。 卸载插件:帮助-> 软件更新...-> “已安装的软件”选项卡。
I had this problem too. It appeared when I installed the m2eclipse plugin.
I had not found a solution, but you can use Ctrl+H shortcut instead.
And you can navigate between tabs with Ctrl+PgDown or Ctrl+PgUp keys.
I've uninstalled the following pluings and it worked.
I don't know which of those cause the problem. To uninstall a plugin: Help -> Software Updates...-> "Installed Software" tab.
我在 Ctrl+H“文件搜索”选项卡中遇到了类似的问题。 “搜索”和“替换”按钮呈灰色(禁用)。 解决方案是填写“文件名模式”文本框(例如*.py)。 也许这是设计使然!
I've faced similar issue in Ctrl+H "File Search" tab. The "Search" and "Replace" button was grayed out (disabled). The solution is fill the "File name patterns" text box (for eg, *.py). May be this is by design!
我在 Debian Lenny 下使用 MyEclipse 7 (eclipse 3.4) 时遇到这个问题。 视角似乎并不重要。 我用快捷键 Ctrl+H 解决了这个问题,但我希望有更好的方法。
I have this problem with MyEclipse 7 (eclipse 3.4) under Debian Lenny. Perspective doesn't seem to matter. I get around it with the shortcut Ctrl+H but I was hoping for a better way.