When you open Eclipse, it automatically restores the files that were open the last time you closed the program. This includes both files that you were working on and files that were open but not being edited. The list of open files is saved in the workspace .metadata folder.