Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: do not close missing (because of network resource unavailable) files

Introduction:

I work from my laptop in two different places and I use Eclipse in only one of them. I'm using network resource (SAMBA) to keep my sources and I'm completely fine with that setup except for

The Problem:

I do not like to close Eclipse even when I work from the place where I don't have access to those sources. From the other point, whenever I accidentally open Eclipse window it starts refreshing the project, considers all the open files deleted (as there is no access to network resource) and closes all the editors. How can I prevent that except for disabling auto-refresh completely?

UPDATE

I'm looking for a setting in either Eclipse settings or config files or whatever, but I'll accept argumentative "It's not possible" answer as well.

UPDATE2

Updated title to more detailed in an attempt to bring more attention to the question.

like image 598
Sergey Kudriavtsev Avatar asked Feb 06 '13 08:02

Sergey Kudriavtsev


1 Answers

I would suggest you simply use some sort of version control. :)

That way the files will always be on disk, meaning you always have access to them, no matter what, you won't have to use samba either and just made it alot harder for yourself to lose any changes you made to the code/versions you had.

If you worry about things not being automatically updated, you can run a cronjob that will automatically commit your changes to the repo on the server. (into an autosave branch for example).

like image 132
Gung Foo Avatar answered Oct 23 '22 11:10

Gung Foo