Eclipse在哪里保存要在启动时打开的文件列表? [英] Where does Eclipse save the list of files to open on startup?

查看:429
本文介绍了Eclipse在哪里保存要在启动时打开的文件列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:Eclipse在哪里存储启动时打开的文件列表?

Question: where does Eclipse store the list of files it opens on startup?

背景在Eclipse中安装了一个插件,该插件会及时崩溃,我的Eclipse工作区处于一个状态。启动时,建筑工作空间任务将无限期地暂停在20%。在我卸载插件之前,我想给它另一个机会。我有一种感觉,Eclipse暂停的原因是因为在崩溃时打开的文件,它试图在启动时重新打开。如果我可以在启动时停止此文件打开,我有机会哄骗插件的行为。问题是我不知道哪个文件列表在Eclipse的运行之间持续存在。

Background: Having installed a plugin into Eclipse which promptly crashed, my Eclipse workspace is in a bit of a state. When started, the building workspace task pauses indefinitely at 20%. Before I uninstall the plugin I want to give it another chance. I have a feeling that the reason Eclipse is pausing is because of a file which was opened when it crashed, which it tries to reopen on startup. If I can stop this file from opening on startup there's a chance I may be able to coax the plugin to behave. The problem is I have no idea where that list of files is persisted between runs of Eclipse.

...在我发布这个问题之前,我意识到我可以删除导致问题的文件(呃)。然而,搜索令我感到沮丧,我想要找到答案。

...a second before I posted this question, I realised I could just delete the file causing the problem (duh). However, the search has frustrated me enough to want to find the answer.

推荐答案

在您的工作区中,以下文件包含您的工作台信息:

In your workspace the following file contains your workbench information:

.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml

可以删除它(或编辑它,但需要一些我想象的),而不会破坏你的工作区,该文件被重新生成蚀。当您删除它时,所有工作台相关设置都将丢失(即所有编辑器都已关闭),但是该工作空间的项目保持不变。

It is possible to delete it (or edit it but that requires some fiddling around I suppose) without breaking your workspace, the file gets regenerated by Eclipse. When you delete it all workbench related settings are lost (ie all editors are closed), but your projects of that workspace stay intact.

编辑:在Eclipse 4.2中的文件是

in Eclipse 4.2 the file is

.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

这篇关于Eclipse在哪里保存要在启动时打开的文件列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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