Eclipse 在哪里保存要在启动时打开的文件列表?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2481089/
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
Where does Eclipse save the list of files to open on startup?
提问by Grundlefleck
Question: where does Eclipse store the list of files it opens on startup?
问题: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.
背景:在 Eclipse 中安装了一个很快崩溃的插件后,我的 Eclipse 工作区处于某种状态。启动时,构建工作区任务在 20% 处无限期暂停。在我卸载插件之前,我想再给它一次机会。我有一种感觉,Eclipse 暂停的原因是因为一个文件在崩溃时打开,它试图在启动时重新打开。如果我可以阻止这个文件在启动时打开,我就有可能哄骗插件运行。问题是我不知道在 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.
...在我发布这个问题之前一秒钟,我意识到我可以删除导致问题的文件(废话)。然而,搜索让我很沮丧,想要找到答案。
回答by Veger
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 重新生成。当您删除它时,所有与工作台相关的设置都将丢失(即所有编辑器都关闭),但该工作区的项目保持不变。
Edit:in Eclipse 4.2 the file is
编辑:在 Eclipse 4.2 中,文件是
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi