Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » autosave snapshot
autosave snapshot [message #547679] Mon, 19 July 2010 10:41
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
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
Previous Topic:[CDO]Helios examples, were to find the right versions
Next Topic:[CDO] Query
Goto Forum:
  


Current Time: Fri Apr 26 17:23:28 GMT 2024

Powered by FUDForum. Page generated in 0.02858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top