fixes to make "read only" sketches handle properly, also from examples

folder
This commit is contained in:
benfry
2004-06-21 17:13:28 +00:00
parent e2e26caf45
commit 124ad261b8
3 changed files with 45 additions and 31 deletions

View File

@@ -72,17 +72,18 @@ public class PdeCode {
// TODO re-enable history
//history.record(s, PdeHistory.SAVE);
try {
//try {
//System.out.println("saving to " + file);
//System.out.println("stuff to save: " + program);
//System.out.println("-------");
PdeBase.saveFile(program, file);
} catch (Exception e) {
PdeBase.showWarning("Error saving file",
"Could not save " + file + "\n" +
"because of an error.", e);
}
PdeBase.saveFile(program, file);
modified = false;
//} catch (Exception e) {
//PdeBase.showWarning("Error saving file",
// "Could not save '" + file.getName() + "'\n" +
// "to '" + file.getParent() + "'\n" +
// "because of an error.", e);
//}
}
}