org.eclipse.mylar.internal.tasks.ui
Class TaskListBackupManager

java.lang.Object
  extended by org.eclipse.mylar.internal.tasks.ui.TaskListBackupManager
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener

public class TaskListBackupManager
extends java.lang.Object
implements org.eclipse.jface.util.IPropertyChangeListener

Author:
Rob Elves

Nested Class Summary
(package private)  class TaskListBackupManager.CheckBackupRequired
           
(package private) static class TaskListBackupManager.ExportJob
           
 
Field Summary
static java.lang.String BACKUP_FAILURE_MESSAGE
           
private static java.lang.String BACKUP_JOB_NAME
           
private static long DAY
           
private static long HOUR
           
private static long MINUTE
           
private static long SECOND
           
private  java.util.Timer timer
           
private static java.lang.String TITLE_TASKLIST_BACKUP
           
 
Constructor Summary
TaskListBackupManager()
           
 
Method Summary
 void backupNow(boolean synchronous)
           
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
           
 void removeOldBackups(java.io.File folder)
          public for testing purposes
 void start(long delay)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE_TASKLIST_BACKUP

private static final java.lang.String TITLE_TASKLIST_BACKUP
See Also:
Constant Field Values

BACKUP_JOB_NAME

private static final java.lang.String BACKUP_JOB_NAME
See Also:
Constant Field Values

BACKUP_FAILURE_MESSAGE

public static final java.lang.String BACKUP_FAILURE_MESSAGE
See Also:
Constant Field Values

SECOND

private static final long SECOND
See Also:
Constant Field Values

MINUTE

private static final long MINUTE
See Also:
Constant Field Values

HOUR

private static final long HOUR
See Also:
Constant Field Values

DAY

private static final long DAY
See Also:
Constant Field Values

timer

private java.util.Timer timer
Constructor Detail

TaskListBackupManager

public TaskListBackupManager()
Method Detail

start

public void start(long delay)

stop

public void stop()

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener

backupNow

public void backupNow(boolean synchronous)

removeOldBackups

public void removeOldBackups(java.io.File folder)
public for testing purposes