X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fapplication%2FFileOption.java;h=c8824de1b90861caeac9a71ec8ee8e02e3309984;hb=953de352675a4ad91fe307d816a4ea7780c94274;hp=4eec3bf5dda3272eb43ddfcb16fa796fddbd8143;hpb=4af9804b36fb0e9899a7cd7961e58e8f5dd9634c;p=jSite.git diff --git a/src/de/todesbaum/jsite/application/FileOption.java b/src/de/todesbaum/jsite/application/FileOption.java index 4eec3bf..c8824de 100644 --- a/src/de/todesbaum/jsite/application/FileOption.java +++ b/src/de/todesbaum/jsite/application/FileOption.java @@ -1,5 +1,5 @@ /* - * jSite - FileOption.java - Copyright © 2006–2011 David Roden + * jSite - FileOption.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software @@ -52,6 +52,9 @@ public class FileOption { /** The edition of the last insert. */ private int lastInsertEdition; + /** The filename of the last insert. */ + private String lastInsertFilename; + /** The current hash of the file. */ private String currentHash; @@ -230,6 +233,27 @@ public class FileOption { } /** + * Returns the name of the file when it was last inserted. + * + * @return The name of the file at the last insert + */ + public String getLastInsertFilename() { + return lastInsertFilename; + } + + /** + * Sets the name of the file when it was last inserted. + * + * @param lastInsertFilename + * The name of the file at the last insert. + * @return These file options + */ + public FileOption setLastInsertFilename(String lastInsertFilename) { + this.lastInsertFilename = lastInsertFilename; + return this; + } + + /** * Returns the current hash of the file. This value is ony a temporary value * that is copied to {@link #getLastInsertHash()} when a project has * finished inserting.