Discard last session state on a conditionhttps://www.eclipse.org/forums/index.php/mv/msg/172696/549566/#msg_549566
I have the following minor annoyance:

When a user forgets to mount a certain file share and there are linked resources from his local workspace to that file share, some ugly error mesages appear on startup and the whole start process takes much more time.

This happens because Eclipse wants to restore editors from the last session which point to files on that file share. I have no problem identifying these files on startup. What I want to know is: How do I prevent the editors from opening? Can I somehow discard the last session?