Esempio n. 1
0
 /**
  * Save a project to file.
  *
  * <p>This first archives the existing file, then calls doSave(...) to do the actual saving.
  *
  * <p>Should doSave(...) throw an exception then it is caught here and any rollback handled before
  * rethrowing the exception.
  *
  * @param project The project being saved.
  * @param file The file to which the save is taking place.
  * @throws SaveException when anything goes wrong
  * @throws InterruptedException if the thread is interrupted
  * @see org.argouml.persistence.ProjectFilePersister#save( org.argouml.kernel.Project,
  *     java.io.File)
  */
 public final void save(Project project, File file) throws SaveException, InterruptedException {
   preSave(project, file);
   doSave(project, file);
   postSave(project, file);
 }