Albinoswordfish
Albinoswordfish

Reputation: 1957

How to clean window history in Eclipse

Right now I'm having this issue in Eclipse where I have an XML file open that's really big in which it almost crashes Eclipse. However this file being opened is saved in my window history, therefore I restart eclipse, it tries to open this massive file again. How do I clear the opened window history in eclipse?

I would prefer not having to clear my workspace entirely as I have mylyn data I want to keep. I've tried using Eclipse clean but this doesn't seem to do anything related to opened windows.

Upvotes: 2

Views: 5689

Answers (3)

Kriss
Kriss

Reputation: 56

Go to Preferences and search for 'workspace'. You will see the list of workspaces that you can delete.

Upvotes: 4

tacticsinquestion
tacticsinquestion

Reputation: 107

Some alternatives: Move or rename the offensive file so that eclipse is unable to open it. File->Switch Workspace->Other to load a new workspace copying your workbench layout.

Just some thoughts, my experience is closing a file and then the program means that the program will not attempt to open the file once launched again.

Upvotes: 1

Polyana Fontes
Polyana Fontes

Reputation: 3212

Your workbench information are saved in this file in your workspace:

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

or depending on your eclipse version:

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

You can delete it and eclipse will recreate the file, you can also try to edit it, but it's a big file and may be hard... Deleting this file all workbench related settings are lost but your projects stays intact.

Upvotes: 7

Related Questions