tags:

views:

353

answers:

4

I would like to have Eclipse (3.5, if that matters) close any open projects I have before I exit my workspace. Is this possible?

+1  A: 

I guess you can write a plugin to do it but since you're the first person who seems to need this, nothing like this exists.

Aaron Digulla
+4  A: 

This preference is close you need (from this JavaTips) -- it does not close projects, but at least clean your workspace:

> General > Editors > Close editors automatically

When any workspace of the eclipse is closed without closing all its editors and again opens the same workspace, it opens all the editors again which were opened at the time of closing.
This might cause slow down the starting of the eclipse.
So it is better to close all the opened editors before closing the workspace.

All open editors can be closed automatically with the closing of the eclipse workspace.

alt text

VonC
+1: I also think this simple thing is what he actually wanted.
BalusC
+1  A: 

We could need this to. We're having several hundred different projects in our workspace. Especially our support-teams often have to open multiple projects at once, to check different installations. If you forget to close these projects eclipse will slow down which each start.

So it would be quite usefull if you could automatically close all open projects on exit.

Thorsten
A: 

Hm, this function does not seem to work anymore for Eclipse 3.6. We actually need them, because open files in the editor from a remote filesystem have a big risk of getting out of date after a while.

Bastiaan Welmers