Java Eclipse 中的包浏览器发生了什么变化?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1497912/
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
What happened to the package explorer in Eclipse?
提问by Relequestual
I have recently been setting up SVN in Eclipse using the Subversive plugin (I am still a bit lost, but that's another issue).
我最近一直在使用 Subversive 插件在 Eclipse 中设置 SVN(我仍然有点迷茫,但这是另一个问题)。
I have been using this guide (http://soledadpenades.com/2008/12/10/add-svn-support-to-your-eclipse-installation/) and finally got it working! The only problem now is, I can't seem to find the Package Explorer, which is the only explorer I could ever seem to get working how I wanted it to (grouping projects into working sets).
我一直在使用本指南(http://soledadpenades.com/2008/12/10/add-svn-support-to-your-eclipse-installation/),终于让它工作了!现在唯一的问题是,我似乎找不到包资源管理器,这是我似乎可以按照我想要的方式工作的唯一资源管理器(将项目分组到工作集)。
Normally, you get it from going to Window→ Show View→ Other, and then select it from the list. The only thing is, it's not IN the list of views... leaving me rather confused.
通常,您可以通过转到Window→ Show View→ Other获得它,然后从列表中选择它。唯一的问题是,它不在视图列表中……让我很困惑。
Just to be clear, I was using the package explorer before with no problems. I am running the latest version of everything as I did the auto update.
为了清楚起见,我之前使用过包浏览器没有任何问题。我在自动更新时正在运行最新版本的所有内容。
Any suggestions as to what is wrong here?
关于这里有什么问题的任何建议?
采纳答案by Relequestual
Three answerers were helpful, however the only cure was to reinstall Eclipse and install the plugins again. Weird problem, and the exact cause not found. I may have deleted some files somehow, but a reinstall solved it.
三个回答者很有帮助,但是唯一的解决方法是重新安装 Eclipse 并再次安装插件。奇怪的问题,并没有找到确切的原因。我可能以某种方式删除了一些文件,但重新安装解决了它。
回答by nkr1pt
Are you sure you are in the Java perspective?
你确定你是在 Java 视角吗?
As views are related to perspectives this could be the problem. The current perspective can be found in the upper right corner.
由于观点与观点相关,这可能是问题所在。当前视角可以在右上角找到。
回答by Rich Seller
I'm guessing you've made it a fast view or minimisedit to it. You could try holding down Ctrl+ F7to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something.
我猜你已经快速查看或将其最小化。您可以尝试按住Ctrl+F7查看所有视图的列表,然后向上/向下箭头查看视图。如果包资源管理器在列表中,它已被最小化或什么的。
If you select it and still can't see it, try Window→ Reset Perspective...to restore all views to their defaults.
如果您选择它但仍然看不到它,请尝试Window→ Reset Perspective...将所有视图恢复为默认值。
回答by starblue
You may be missing the JDT plugin containing the Package Explorer.
您可能缺少包含包资源管理器的 JDT 插件。
回答by Bill
I think you were actually still in the Debug perspective, since that was what did it for me. As someone mentioned above, I had to go to the top right and hit "Java perspective" to get back to my normal views.
我认为您实际上仍然处于调试的角度,因为这对我来说是这样做的。正如上面提到的那样,我必须转到右上角并点击“Java 透视图”才能恢复正常视图。
回答by Ian Mc
Alt+Shift+Qworked for me when I was in debug mode.
Alt+ Shift+Q工作对我来说,当我在调试模式。
回答by Daniel
For me I needed to do two things:
对我来说,我需要做两件事:
- Reinstall the "Eclipse Java development tools" via Help→ Install Software→ Programming Languages
- Delete and recreate the .metadata Eclipse Workspace settings.
- 通过帮助→安装软件→编程语言重新安装“Eclipse Java 开发工具”
- 删除并重新创建 .metadata Eclipse Workspace 设置。
Honestly, deleting the .metadata directory is probably sufficient - try that first.
老实说,删除 .metadata 目录可能就足够了 - 首先尝试。
回答by user2649191
At the top right corner, there is a button called Open Perspective. Click on it, and then Java Default. Everything will come back to normal.
在右上角,有一个名为Open Perspective的按钮。单击它,然后单击Java Default。一切都会恢复正常。
回答by jammies
Weirdly enough, although reset perspective didn't work, menu Window→ New windowworked! It opened a new window with the perspectives reset.
奇怪的是,虽然重置透视不起作用,但菜单窗口→新窗口起作用了!它打开了一个新窗口,透视图重置。
回答by gowtham
On the right top you can select Java or JRE or whatever. That button might got changed. So click the neighbor buttons such as Java or something.
在右上角,您可以选择 Java 或 JRE 或其他任何内容。那个按钮可能被改变了。所以点击Java之类的邻居按钮。