Move persistence clases to persistence package.

This commit is contained in:
Paulo Gustavo Veiga
2012-02-25 23:32:15 -03:00
parent e401d73cb6
commit 9e44804314
29 changed files with 820 additions and 249 deletions

View File

@@ -29,12 +29,12 @@
// Load map from XML file persisted on disk...
var persistence = mindplot.PersistenceManager.getInstance();
var mindmap;
try {
// try {
mindmap = persistence.load(mapId);
} catch(e) {
// } catch(e) {
// If the map could not be loaded, create a new empty map...
mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
}
// mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
// }
designer.loadMap(mindmap);
});