在 Eclipse 中右键单击不起作用?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25300416/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Right click in eclipse is not working?
提问by Niranjan
My right click is not working in eclipse.I tried to work on servlet so i downloaded javaEE to work and used yesterday (Aug 13 2014) after i didn't used my eclipse which I am using regularly today i started working on the android in my regular eclipse.When i started working on the project my right click not working in package explorer. Also in Window --> show view showing blank.
我的右键单击在 eclipse 中不起作用。我尝试在 servlet 上工作,所以我昨天(2014 年 8 月 13 日)下载了 javaEE 工作并使用,因为我没有使用我今天经常使用的 eclipse 我开始在 android 上工作我的常规日食。当我开始处理该项目时,我的右键单击在包资源管理器中不起作用。同样在 Window --> 显示显示空白的视图。
These are the different trials i have done.
这些是我做过的不同试验。
restarting the eclipse.
重新启动日食。
Change the work space.
改变工作空间。
restarted the computer.
重新启动了计算机。
But the problem is not solved.
但问题并没有解决。
回答by prashant thakre
Restart Eclipse with a "-clean"
使用“-clean”重新启动 Eclipse
Open a command prompt (click Start, Run... enter "cmd"), then go to the directory where you have Eclipse installed with "cd ", and then run "eclipse -clean
".
打开命令提示符(单击开始,运行...输入“cmd”),然后使用“cd”转到安装 Eclipse 的目录,然后运行“ eclipse -clean
”。
回答by Sairam Kukadala
You may try clearing SOCKS proxy if your company using a proxy server.
如果您的公司使用代理服务器,您可以尝试清除 SOCKS 代理。
Window → Preferences → Network Connections → Select SOCKS→ Click on Clear(Make sure you have proxy server listed in it).
窗口 → 首选项 → 网络连接 → 选择SOCKS→ 单击 清除(确保其中列出了代理服务器)。
回答by m_at_vidavia
I had similar symptoms recently. Turned out it was caused by the Subversion server being unavailable - once that was restarted I was able to right-click. My environment was Eclipse Luna with Subclipse.
我最近有类似的症状。原来它是由 Subversion 服务器不可用引起的 - 一旦重新启动,我就可以右键单击。我的环境是带有 Subclipse 的 Eclipse Luna。
So worth checking that any connected source control systems are operational. Hope that helps.
因此值得检查任何连接的源控制系统是否正常运行。希望有帮助。
回答by Brimstedt
Turn on error view in Eclipse: Window -> Show View -> Other
. Search for Error
在 Eclipse 中打开错误视图:Window -> Show View -> Other
. 搜索Error
There you'll most likely find errors in the log, which will tell you which plugin prevents the menu from opening.
在那里您很可能会在日志中发现错误,它会告诉您哪个插件阻止菜单打开。
For example, I found:
例如,我发现:
java.lang.NullPointerException at de.anbos.eclipse.
easyshell
.plugin.commands.DefineCommands.createContributionItems(DefineCommands.java:49) at org.eclipse.ui.internal.menus.ContributionFactoryGenerator.compute(ContributionFactoryGenerator.java:72) at org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord.mergeFactoryIntoModel(ContributionRecord.java:271)
de.anbos.eclipse 中的 java.lang.NullPointerException。
easyshell
.plugin.commands.DefineCommands.createContributionItems(DefineCommands.java:49) 在 org.eclipse.ui.internal.menus.ContributionFactoryGenerator.compute(ContributionFactoryGenerator.java:72) 在 org.eclipse.e4.ui.workbench.renderers.swt .ContributionRecord.mergeFactoryIntoModel(ContributionRecord.java:271)
Fixing EasyShell plugin config solved the problem for me
修复 EasyShell 插件配置为我解决了问题
回答by CodeMonkey
I just ran into this issue. I simply restarted eclipse since I had it open for days.
我刚刚遇到了这个问题。因为我已经打开了几天,所以我只是重新启动了 eclipse。
回答by Michal Tenenberg
This happened to me, but only in the "SVN Repositories" window (so I couldn't check out anything). Using the right-click button on the keyboard worked (had to connect an external keyboard with such a button to my laptop).
这发生在我身上,但仅在“SVN 存储库”窗口中(因此我无法查看任何内容)。使用键盘上的右键单击按钮工作(必须将带有此类按钮的外部键盘连接到我的笔记本电脑)。
回答by Pbjhks Hari Krishna
I had this problem with STS and I went to the STS folder where I started STS and opened eclipse.exe instead of STS and this fixed the problem. I was able to use the Right click for my project.
我在 STS 上遇到了这个问题,我转到了 STS 文件夹,在那里我启动了 STS 并打开了 eclipse.exe 而不是 STS,这解决了问题。我能够为我的项目使用右键单击。
This fixed my problem "temporarily ONLY"
这“暂时”解决了我的问题
回答by Sumit
I was facing the same issue and went to Preferences-> Network Connections and changed the Active Provider from Direct to Manual. This resolved my issue.
我遇到了同样的问题,然后转到首选项-> 网络连接并将活动提供程序从直接更改为手动。这解决了我的问题。
回答by rahulnikhare
I had the similar problem. Later I found that I have installed one plugin name "ContextQuickies" from market place which is causing this problem. I have uninstalled it and restarted eclipse which solved my problem. My environment was Eclipse Kepler.
我有类似的问题。后来我发现我从市场上安装了一个名为“ContextQuickies”的插件,这导致了这个问题。我已经卸载它并重新启动 eclipse 解决了我的问题。我的环境是 Eclipse Kepler。
Steps to uninstall: Help->Install Software->Already Installed -> This will open new window from there you can Uninstall the plugin and restart. Hope this helps
卸载步骤:帮助->安装软件->已安装->这将打开新窗口,您可以从那里卸载插件并重新启动。希望这可以帮助