X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fapplication%2FProject.java;h=bb722e78f4f46e8dc58f444c6c1cf01b14ccfac7;hb=bb56ac7db27634a4b74b6f820523be723ef418d7;hp=c7bdd7994d63e687d6433d184090753dfdd7fc3f;hpb=1e1c1eeb2dd778447e8dbe77d109975fda11f0c6;p=jSite.git diff --git a/src/de/todesbaum/jsite/application/Project.java b/src/de/todesbaum/jsite/application/Project.java index c7bdd79..bb722e7 100644 --- a/src/de/todesbaum/jsite/application/Project.java +++ b/src/de/todesbaum/jsite/application/Project.java @@ -420,11 +420,12 @@ public class Project implements Comparable { } /** - * Copies the current hashes of all file options to the last insert hashes, - * updating the hashes for the next insert. This method should only be - * called after the insert has finished successfully. + * Performs some post-processing on the project after it was inserted + * successfully. At the moment it copies the current hashes of all file + * options to the last insert hashes, updating the hashes for the next + * insert. */ - public void copyHashes() { + public void onSuccessfulInsert() { for (FileOption fileOption : fileOptions.values()) { if ((fileOption.getCurrentHash() != null) && (fileOption.getCurrentHash().length() > 0) && !fileOption.getCurrentHash().equals(fileOption.getLastInsertHash())) { fileOption.setLastInsertEdition(edition);