diff --git a/diylc/diylc-swing/config.properties b/diylc/diylc-swing/config.properties
index 96e15b65..8b23d8eb 100644
--- a/diylc/diylc-swing/config.properties
+++ b/diylc/diylc-swing/config.properties
@@ -2,4 +2,5 @@
#org.diylc.presenter.InstantiationManager.MAX_RECENT_COMPONENTS=20
#org.diylc.swing.plugins.canvas.CanvasPanel.USE_HARDWARE_ACCELLERATION=true
#org.diylc.swingframework.ruler.Ruler.USE_HARDWARE_ACCELLERATION=true
-#org.diylc.swing.gui.editor.PropertyEditorDialog.SHOW_DEFAULT_BOXES=true
\ No newline at end of file
+#org.diylc.swing.gui.editor.PropertyEditorDialog.SHOW_DEFAULT_BOXES=true
+#org.diylc.swing.plugins.autosave.AutoSavePlugin.MAX_TOTAL_SIZE_MB=64
\ No newline at end of file
diff --git a/diylc/diylc-swing/src/org/diylc/swing/plugins/autosave/AutoSavePlugin.java b/diylc/diylc-swing/src/org/diylc/swing/plugins/autosave/AutoSavePlugin.java
index 1655412b..1fb21043 100644
--- a/diylc/diylc-swing/src/org/diylc/swing/plugins/autosave/AutoSavePlugin.java
+++ b/diylc/diylc-swing/src/org/diylc/swing/plugins/autosave/AutoSavePlugin.java
@@ -44,8 +44,8 @@ public class AutoSavePlugin implements IPlugIn {
private static final Logger LOG = Logger.getLogger(AutoSavePlugin.class);
- protected static final long autoSaveFrequencyMs = 60 * 1000;
- protected static final int maxTotalSizeMb = 64;
+ public static long BACKUP_FREQ_MS = 60 * 1000;
+ public static int MAX_TOTAL_SIZE_MB = 64;
private ExecutorService executor;
@@ -73,7 +73,7 @@ public class AutoSavePlugin implements IPlugIn {
@Override
public void processMessage(EventType eventType, Object... params) {
if (eventType == EventType.PROJECT_MODIFIED) {
- if (System.currentTimeMillis() - lastSave > autoSaveFrequencyMs) {
+ if (System.currentTimeMillis() - lastSave > BACKUP_FREQ_MS) {
executor.execute(new Runnable() {
@Override
@@ -124,7 +124,7 @@ public class AutoSavePlugin implements IPlugIn {
}
});
long totalSize = 0;
- long maxTotalSize = maxTotalSizeMb * 1024 * 1024;
+ long maxTotalSize = MAX_TOTAL_SIZE_MB * 1024 * 1024;
for (File f : files)
totalSize += f.length();
int i = 0;
diff --git a/diylc/diylc-swing/update.xml b/diylc/diylc-swing/update.xml
index 67815ffd..3ed0382a 100644
--- a/diylc/diylc-swing/update.xml
+++ b/diylc/diylc-swing/update.xml
@@ -2636,7 +2636,7 @@
NEW_FEATURE
- Auto-save plugin now works by periodically creating project backups in user\.diylc\autoSave directory and maintains file history, keeping the last X versions of the file. Maximum size for all backups is configurable and pre-set to 64MB
+ Auto-save plugin now works by periodically creating project backups in user\.diylc\autoSave directory and maintains file history, keeping the last X versions of the file. Maximum size for all backups combined is configurable and pre-set to 64MB
IMPROVEMENT