Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Eclipse save the list of files to open on startup?

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

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.

like image 300
Grundlefleck Avatar asked Mar 19 '10 23:03

Grundlefleck


People also ask

Where do Eclipse files saved?

- [Voiceover] When we first installed Eclipse, and we launched it for the first time, do you remember the prompt that it asked you where you wanted to store your files? It automatically defaults to the C drive, to users, your username, and it creates a folder called Workspace. That's where your files are located.

How do I open a file list in Eclipse?

You can use Ctrl + F6 to bring this up on older versions of Eclipse.

Where can I find project in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

What is .Eclipse file?

. project file is created whenever you create an Eclipse project. I guess, when you loaded your workspace, your components had some files or when you loaded your workspace you chose to create project for the root folder. This would have created a . project file which contains name of the Eclipse project.


1 Answers

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.

Edit: in Eclipse 4.2 the file is

.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi 
like image 50
Veger Avatar answered Oct 24 '22 18:10

Veger