loading prev save and restore too? Decisions

This commit is contained in:
Manindra Moharana
2014-01-12 20:04:03 +05:30
parent 7cb301e3b0
commit ebaab69e2a
2 changed files with 12 additions and 7 deletions

View File

@@ -245,8 +245,7 @@ public class DebugEditor extends JavaEditor implements ActionListener {
ta.setECSandThemeforTextArea(errorCheckerService, dmode);
addXQModeUI();
debugToolbarEnabled = new AtomicBoolean(false);
log("Sketch Path: " + path);
loadAutoSaver();
log("Sketch Path: " + path);
}
private void addXQModeUI(){
@@ -735,6 +734,10 @@ public class DebugEditor extends JavaEditor implements ActionListener {
clearBreakpointedLines(); // force clear breakpoint highlights
variableInspector().reset(); // clear contents of variable inspector
}
if(autosaver != null)
autosaver.stop();
loadAutoSaver();
//System.out.println("LOADDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
return didOpen;
}
@@ -884,9 +887,11 @@ public class DebugEditor extends JavaEditor implements ActionListener {
if(response == JOptionPane.YES_OPTION){
handleOpenInternal(pastSave.getAbsolutePath());
//log(getSketch().getMainFilePath());
autosaver = new AutoSaveUtil(this, 5);
return;
}
else{
autosaver.init();
}
autosaver.init();
}
/**