*/
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;
}
if (p.getMainFile().exists() && !p.getMainFile().canWrite()) {
JOptionPane.showMessageDialog(Application.getFrame(),
"Can't save project - unable to write to file \"" + p.getMainFile().getPath() + "\"",
"Can't Save Project", JOptionPane.OK_OPTION);
return false;
}
getProjectController().getProjectWatcher().pauseWatching();
p.save();
// update preferences domain key
preference.rename(p.getMainFile().getAbsolutePath());
getApplication().getFrameController().addToLastProjListAction(
p.getMainFile().getAbsolutePath());
Application.getFrame().fireRecentFileListChanged();