在将 Eclipse 从 Indigo 升级到 Juno 时,我可以保留我的设置吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10953686/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:06:51  来源:igfitidea点击:

Can I keep my settings upgrading Eclipse from Indigo to Juno?

eclipseeclipse-juno

提问by G. Blake Meike

How can I upgrade Eclipse from Indigo to Juno without losing all of my customizations?

如何在不丢失所有自定义设置的情况下将 Eclipse 从 Indigo 升级到 Juno?

I've tried two different things, neither of which worked:

我尝试了两种不同的方法,但都不起作用:

  • Export prefs from Indigo and import into Juno
  • Run Juno on a copy of the Indigo workspace
  • 从 Indigo 导出首选项并导入到 Juno
  • 在 Indigo 工作区的副本上运行 Juno

It's so annoying to have to start from scratch with every upgrade...

每次升级都必须从头开始真是太烦人了......

回答by AlanB

I am no expert, but I just added new sites to my "Available Software Sites" (help -> install new software -> Available Software Sites)

我不是专家,但我只是在“可用软件站点”中添加了新站点(帮助 -> 安装新软件 -> 可用软件站点)

http://download.eclipse.org/releases/juno

http://download.eclipse.org/releases/juno

http://download.eclipse.org/tools/cdt/releases/juno

http://download.eclipse.org/tools/cdt/releases/juno

and updated (help -> install updates).

并更新(帮助 -> 安装更新)。

After the update

更新后

http://download.eclipse.org/eclipse/updates/4.2had been added http://download.eclipse.org/eclipse/updates/3.7had been disabled http://download.eclipse.org/tools/cdt/releases/indigohad been disabled

http://download.eclipse.org/eclipse/updates/4.2已添加 http://download.eclipse.org/eclipse/updates/3.7已禁用 http://download.eclipse.org/tools/cdt/releases/indigo已禁用

maybe other changes that I didn't notice.

也许还有其他我没有注意到的变化。

Everything seems to work as expected - project list remains - perspectives remain - the only thing that wasn't preserved seemed to be the editor tabs that were open in the workspace, but that is small loss. So hopefully that was the right way to do it - unless someone wants to tell me differently.

一切似乎都按预期工作 - 项目列表仍然存在 - 透视图仍然存在 - 唯一没有保留的似乎是在工作区中打开的编辑器选项卡,但这是很小的损失。所以希望这是正确的方法 - 除非有人想以不同的方式告诉我。

Alan

艾伦

回答by Wolfram

I followed the same way that AlanB described and had no problems upgrading from Indigo:

我遵循了 AlanB 描述的相同方式,从 Indigo 升级没有问题:

  1. Add the Juno Update Siteand the update sites of other projectsyou are using (under Eclipse> Preferences> Available Software Sites)

  2. Select Help> Check for Updates

  3. Follow the update wizard (select everything you need, accept everything you have to)

  4. Restart Eclipse

  1. 添加Juno 更新站点和您正在使用的其他项目的更新站点(在Eclipse> Preferences> 下Available Software Sites

  2. 选择Help>Check for Updates

  3. 遵循更新向导(选择您需要的一切,接受您必须做的一切)

  4. 重启 Eclipse

Additional information:

附加信息:

FAQ entry in the eclipse.org wiki: "How do I upgrade Eclipse?"

eclipse.org wiki 中的常见问题条目:“如何升级 Eclipse?”

Eclipse Juno (4.2) Readme (slightly more detailed): "Upgrading Workspace from a Previous Release"

Eclipse Juno (4.2) 自述文件(稍微详细一点):“从以前的版本升级工作区”

回答by Justin Buser

You guys are making this into a much bigger issue than it really is, Eclipse is designed to be portable, i.e. it doesn't need to be installed or store settings in the registry etc...

你们正在把这变成一个比实际更大的问题,Eclipse 被设计为可移植的,即它不需要安装或在注册表中存储设置等......

Upgrading and maintaining settings is as simple as downloading version Y and extracting it into the version X folder overwriting everything but the configuration folder. The new version configuration folder only has 2 or 3 generic files in it anyway until after the first time it is run. I've done this over the past 4 versions of Eclipse and never had a problem.

升级和维护设置就像下载版本 Y 并将其解压缩到版本 X 文件夹中一样简单,覆盖除配置文件夹之外的所有内容。在第一次运行之前,新版本配置文件夹中只有 2 或 3 个通用文件。我在过去的 4 个 Eclipse 版本中都这样做过,从来没有遇到过问题。

The only thing to keep in mind is that anything that's not included in whichever specialized version you're using may need to be upgraded, but that's simply a matter of clicking check for upgrades under help after running the new version for the first time.

唯一要记住的是,您使用的任何专用版本中未包含的任何内容都可能需要升级,但这只需在首次运行新版本后单击“帮助”下的“检查升级”即可。

回答by Cocoro Cara

@AlanB, that doesn't work for me, because the releases repo does not include the Eclipse SDK. Maybe the organization has changed since you upgraded.

@AlanB,这对我不起作用,因为发行版存储库不包含 Eclipse SDK。也许自从您升级以来,组织已经发生了变化。

I had to add the following repository: http://download.eclipse.org/eclipse/updates/4.2/to the available software sites.

我必须添加以下存储库:http: //download.eclipse.org/eclipse/updates/4.2/到可用的软件站点。

Even then check updates doesn't work. Have to go through the install new software path, select the above repo, and then it shows Eclipse SDK, Eclipse Platform SDK, etc. options. Have to select the correct option to upgrade depending on the current installation (i.e., if it was a platform or SDK, etc.)

即使这样检查更新也不起作用。必须经过安装新软件的路径,选择上面的repo,然后就会显示Eclipse SDK、Eclipse Platform SDK等选项。必须根据当前安装选择正确的升级选项(即,如果是平台或 SDK 等)

Hope this helps someone.

希望这可以帮助某人。

CC

抄送

回答by TheDorkKnight

EDIT: This is for Linux users

编辑:这是针对 Linux 用户的

This link should help: http://blog.brunobraga.net/eclipse-42-in-ubuntu-1204

这个链接应该有帮助:http: //blog.brunobraga.net/eclipse-42-in-ubuntu-1204

Essentially you just need to replace your /usr/lib/eclipse with a new download of the latest version, and that's really about it.

本质上,您只需要使用最新版本的新下载来替换您的 /usr/lib/eclipse,就可以了。

回答by thSoft

You can transfer most of your preferences by Export... > Preferences > Export allin your old installation and importing them into your new one.

您可以通过导出... > 首选项 >在旧安装中全部导出并将它们导入到新安装中来传输大部分首选项

回答by mar10

You can import existing projects from a common root folder using

您可以使用从公共根文件夹导入现有项目

File > Import... > General > Existing Projects into Workspace

文件 > 导入... > 常规 > 现有项目到工作区

in addition to the preference transfer (as thSoft suggested):

除了偏好转移(如thSoft建议):

File > Export... > General > Preferences > Export all
File > Import... > General > Preferences > Import all

文件 > 导出... > 常规 > 首选项 > 导出所有
文件 > 导入... > 常规 > 首选项 > 全部导入

回答by Christophe

You can use eclipse-perspective-shareto migrate your perspectives.

您可以使用eclipse-perspective-share来迁移您的观点。

My 2 cents.

我的 2 美分。

回答by Jo?o Quintas

The first and second answers didn't work for me.

第一个和第二个答案对我不起作用。

I ended up downloading the most recent version of eclipse and import the workspace and configurations from the previous version.

我最终下载了最新版本的 eclipse 并从以前的版本导入了工作区和配置。

I found this video helpful http://www.youtube.com/watch?v=57vTrxFa3d4

我发现这个视频很有帮助http://www.youtube.com/watch?v=57vTrxFa3d4