简体   繁体   English

如何将旧文件从Java Eclipse工作区复制到新工作区中?

[英]How do I copy over my old files from my Java Eclipse workspace into my new workspace?

I had to reinstall some things on my computer, eclipse being one of them. 我不得不在计算机上重新安装一些东西,蚀是其中之一。 I took my workspace and made a folder out of it and left it on my desktop. 我拿走了工作区,并从其中制作了一个文件夹,并将其留在桌面上。 I used Indigo last time, but I have to update some time, so I decided to upgrade to Juno. 我上次使用Indigo,但是我必须更新一些时间,因此我决定升级到Juno。 I set the default workspace to a new folder, eclipseWorkspace, and dragged all the files from my previous workspace into the new file (eclipseWorkspace). 我将默认工作空间设置为一个新文件夹eclipseWorkspace,并将所有文件从以前的工作空间拖到新文件(eclipseWorkspace)中。 I also set the default workspace to eclipseWorkspace, but none of my old files show up in the navigator or pack explorer. 我还将默认工作空间设置为eclipseWorkspace,但是我的所有旧文件都没有显示在导航器或包资源管理器中。 I'm sure that this is just a small mistake that requires me deleting some file or something like that, but I've been at this for about an hour and I'm not really sure where to go from here. 我确定这只是一个小错误,需要我删除一些文件或类似的文件,但是我已经呆了大约一个小时,而且我不确定自己从哪里去。 How do I get all of my old Java projects to my new workspace? 如何将所有旧的Java项目都移到新的工作区中?

使用导入到新的工作区中...

If you go to File --> Import, then select Existing Projects into Workspace. 如果转到文件->导入,则选择现有项目到工作区。 You can then select the root directory of your workspace. 然后,您可以选择工作区的根目录。 Eclipse should do the rest for you. Eclipse应该为您完成其余的工作。

First use the import option for old projects. 首先将导入选项用于旧项目。

If want to copy your old setting then copy to your new workspace: 如果要复制旧设置,则复制到新工作区:

.metadata/.plugins/org.eclipse.core.runtime/.settings

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

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