Beginning auto save impl

This commit is contained in:
Manindra Moharana
2014-01-11 20:28:31 +05:30
parent 5fdfc88f3d
commit 22d5216fc4
2 changed files with 54 additions and 0 deletions

View File

@@ -177,6 +177,8 @@ public class DebugEditor extends JavaEditor implements ActionListener {
*/
protected JCheckBoxMenuItem completionsEnabled;
protected AutoSaveUtil autosaver;
public DebugEditor(Base base, String path, EditorState state, Mode mode) {
super(base, path, state, mode);
@@ -244,6 +246,8 @@ public class DebugEditor extends JavaEditor implements ActionListener {
addXQModeUI();
debugToolbarEnabled = new AtomicBoolean(false);
log("Sketch Path: " + path);
autosaver = new AutoSaveUtil(this, 5);
autosaver.init();
}
private void addXQModeUI(){