autosave snapshot [message #547681] |
Mon, 19 July 2010 06:41 |
Eclipse User |
|
|
|
Hi,
I have a moderately complex Editor (WorldEditor extends FormEditor
implements IPersistableEditor, IPreferenceChangeListener) that edits an
EMF model.
I do not have a workspace concept; just a file in the filesystem.
I would like to add Autosave capabilities; In particular I would like to:
- Autosave to temp file when user pauses for a specified number of seconds.
- Autosave to temp file every x minutes even if the user keeps changing
things.
- Delete temp file when the user does a real Save (or rename temp to
real filename).
- Keep a certain number of old versions on Save (numbered backup).
Is there any infrastructure to achieve this (or something similar)?
I saw nothing (aside from
http://sourceforge.net/projects/savedirtyeditor/ which seems old,
workspace-centric and Text-centric), but that might be my
short-sightedness. :)
Can someone suggest the Right Way to implement this?
Thanks in Advance
Mauro
|
|
|
Powered by
FUDForum. Page generated in 0.03653 seconds