/**
* Saves project and related files. Saving is done to temporary files, and only on
* successful save, master files are replaced with new versions.
*/
protected boolean saveAll() throws Exception {
Project p = getCurrentProject();
// obtain preference object before save, when the project path may change.....
Domain preference = getProjectController().getPreferenceDomainForProject();
if (!chooseDestination(p)) {
return false;
}
p.save();
// update preferences domain key
preference.rename(p.getMainFile().getAbsolutePath());
getApplication().getFrameController().addToLastProjListAction(
p.getMainFile().getAbsolutePath());
return true;
}