2个具有相同工作区的Eclipse版本 [英] 2 Eclipse versions with same workspace

查看:239
本文介绍了2个具有相同工作区的Eclipse版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在我的系统上运行Eclipse Ganymede。我想安装Eclipse Indigo并将其连接到同一个工作区(然后删除Eclipse Ganymede)。这个工作是否正常或应该重新创建所有的项目?

解决方案

理论上应该是有效的。实际上,我建议为Indigo创建一个新的工作区,并重新创建或导入项目。



这就是为什么。 Ganymede是Eclipse平台的旧版本,实际上它比Indigo早了3个主要版本,因此您可能希望许多配置文件具有更改的格式。虽然Eclipse的家伙努力保持向后兼容性,但是可能在3.4(Ganymede)和3.7(Indigo)之间停止工作。我不认为他们运行这样的测试..



另一个原因是,在使用工作区时,Eclipse往往会保存一些元数据文件,缓存等在工作空间中,当您使用新版本时,可能会忘记删除过时的。所以我个人更喜欢为新的Eclipse版本创建一个干净的工作区。



这样做的另一个原因是,在Eclipse的较新版本中使用工作区之后可能会更新工作区元数据,您可能无法再使用具有此工作空间的旧版本。因此,创建一个新的工作空间将允许您使用旧的工作空间,就像没有发生任何事情一样。



毕竟,导出/导入所有内容不是一个大问题您需要:




  • 工作区/平台设置。




导出:文件 - >导出 - >常规 - >首选项;



导入:文件 - >导入 - >常规 - >首选项;





  • 项目。




导入:File-> Import-> General->现有项目进入Workspace


在选择根目录中选择您的旧工作区文件夹。您可能想要设置将项目复制到工作区复选框。另请参阅 eclipse帮助文章导入。


I currently have Eclipse Ganymede running on my system. I wanted to install Eclipse Indigo and connect it to the same workspace (and then remove Eclipse Ganymede). Will this work OK or should I recreate all projects?

解决方案

In theory it should work. In practice, I'd suggest to create a new workspace for the Indigo and re-create or import projects.

Here's why. Ganymede is a pretty old version of the Eclipse platform, actually it's 3 major releases earlier than Indigo, so you may expect many of the configuration files to have changed formats. Though Eclipse guys struggle to keep backwards compatibility, it could be that something stopped working between 3.4 (Ganymede) and 3.7(Indigo). I don't think they run such tests..

Another reason is that while you use the workspace, Eclipse tend to keep store some meta-data files, caches, etc. in the workspace, and it could forget to delete obsolete ones when you use a new version. So I personally prefer to make a clean workspace for the new Eclipse release.

One more reason for doing this is that after use a workspace in a newer version of Eclipse, it may update workspace metadata and you may not be able to use an older Eclipse version with this workspace anymore. So making a new workspace would allow you to use the old Eclipse with old workspace as if nothing has happened.

After all it's not a big problem to export/import all what you need:

  • Workspace/platform settings.

Export: File->Export->General->Preferences;

Import: File->Import->General->Preferences;

  • Projects.

Import: File->Import->General->Existing Projects into Workspace

Choose your old workspace folder in the "Select root directory". You would probably want to set a "Copy projects into workspace" checkbox. Also see an eclipse help article on importing.

这篇关于2个具有相同工作区的Eclipse版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆