public class AutoSaveManager
extends java.lang.Object
| Constructor and Description |
|---|
AutoSaveManager(JabRefFrame frame) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
autoSave(BasePanel panel)
Perform an autosave.
|
void |
clearAutoSaves()
Clean up by deleting the autosave files corresponding to all open files,
if they exist.
|
static boolean |
deleteAutoSaveFile(BasePanel panel)
Delete this BasePanel's autosave if it exists.
|
static java.io.File |
getAutoSaveFile(java.io.File f)
Get a File object pointing to the autosave file corresponding to the given file.
|
static boolean |
newerAutoSaveExists(java.io.File f)
Check if a newer autosave exists for the given file.
|
void |
startAutoSaveTimer() |
void |
stopAutoSaveTimer() |
public AutoSaveManager(JabRefFrame frame)
public void startAutoSaveTimer()
public void stopAutoSaveTimer()
public static java.io.File getAutoSaveFile(java.io.File f)
f - The database file.public static boolean autoSave(BasePanel panel)
panel - The BasePanel to autosave for.public static boolean deleteAutoSaveFile(BasePanel panel)
panel - The BasePanel in question.public void clearAutoSaves()
public static boolean newerAutoSaveExists(java.io.File f)
f - The file to check.