简体   繁体   English

Eclipse中的包资源管理器发生了什么?

[英]What happened to the package explorer in Eclipse?

I have recently been setting up SVN in Eclipse using the Subversive plugin (I am still a bit lost, but that's another issue). 我最近在Eclipse中使用Subversive插件设置了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! 我一直在使用这个指南( http://soledadpenades.com/2008/12/10/add-svn-support-to-your-eclipse-installation/ )并最终使它工作! 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). 现在唯一的问题是,我似乎无法找到Package Explorer,这是我唯一能够按照我想要的方式工作的探险家(将项目分组到工作集中)。

Normally, you get it from going to WindowShow ViewOther , and then select it from the list. 通常,您可以从“ 窗口” →“ 显示视图” →“ 其他”进入,然后从列表中选择它。 The only thing is, it's not IN the list of views... leaving me rather confused. 唯一的问题是,它不在观点列表中......让我感到很困惑。

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? 关于这里有什么问题的任何建议?

I'm guessing you've made it a fast view or minimised it to it. 我猜你已经把它变成了一个快速视图或最小化它。 You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. 您可以尝试按住Ctrl + F7查看所有视图的列表,然后按向上/向下箭头查看视图。 If Package Explorer is in the list it has been minimised or something. 如果Package Explorer位于列表中,则它已被最小化或者其他内容。

If you select it and still can't see it, try WindowReset Perspective... to restore all views to their defaults. 如果您选择它但仍然看不到它,请尝试WindowReset Perspective ...将所有视图恢复为默认值。

当我处于调试模式时, Alt + Shift + Q对我有用。

Weirdly enough, although reset perspective didn't work, menu WindowNew window worked! 奇怪的是,虽然重置透视不起作用,菜单窗口新窗口工作! It opened a new window with the perspectives reset. 它打开了一个新窗口,重置了透视图。

For me I needed to do two things: 对我来说,我需要做两件事:

  • Reinstall the "Eclipse Java development tools" via HelpInstall SoftwareProgramming Languages 通过帮助安装软件编程语言重新安装“Eclipse Java开发工具”
  • Delete and recreate the .metadata Eclipse Workspace settings. 删除并重新创建.metadata Eclipse Workspace设置。

Honestly, deleting the .metadata directory is probably sufficient - try that first. 老实说,删除.metadata目录可能就足够了 - 首先尝试。

At the top right corner, there is a button called Open Perspective . 在右上角,有一个名为Open Perspective的按钮。 Click on it, and then Java Default . 单击它,然后单击Java Default Everything will come back to normal. 一切都会恢复正常。

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. 目前的观点可以在右上角找到。

您可能缺少包含Package Explorer的JDT插件。

I think you were actually still in the Debug perspective, since that was what did it for me. 我认为你实际上仍处于Debug视角,因为这对我来说就是这样。 As someone mentioned above, I had to go to the top right and hit "Java perspective" to get back to my normal views. 正如上面提到的那样,我不得不走到右上角并点击“Java perspective”来回到我的正常视图。

Three answerers were helpful, however the only cure was to reinstall Eclipse and install the plugins again. 三个回答者很有帮助,但唯一的办法是重新安装Eclipse并再次安装插件。 Weird problem, and the exact cause not found. 奇怪的问题,并没有找到确切的原因。 I may have deleted some files somehow, but a reinstall solved it. 我可能以某种方式删除了一些文件,但重新安装解决了它。

On the right top you can select Java or JRE or whatever. 在右上角,您可以选择Java或JRE等等。 That button might got changed. 那个按钮可能会改变。 So click the neighbor buttons such as Java or something. 因此,单击Java等邻居按钮。

Go to Window -> perspective -> Open Perspective -> Java. 转到Window - > perspective - > Open Perspective - > Java。 Now all the packages in Java will be displayed in the package explorer. 现在,Java中的所有包都将显示在包资源管理器中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM