From: David ‘Bombe’ Roden Date: Mon, 21 Dec 2009 21:04:07 +0000 (+0100) Subject: Add member for temp directory. X-Git-Tag: 0.8~33 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f7816ebbadbf7831b48f03318e2a5866a3932c71;p=jSite.git Add member for temp directory. --- diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index eeac468..03e4e67 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -41,6 +41,9 @@ public class PreferencesPage extends TWizardPage { /** Action that chooses a new temp directory. */ private Action chooseTempDirectoryAction; + /** The temp directory. */ + private String tempDirectory; + /** * Creates a new “preferences” page. * @@ -65,6 +68,35 @@ public class PreferencesPage extends TWizardPage { }); } + // + // ACCESSORS + // + + /** + * Returns the temp directory. + * + * @return The temp directory, or {@code null} to use the default temp + * directory + */ + public String getTempDirectory() { + return tempDirectory; + } + + /** + * Sets the temp directory. + * + * @param tempDirectory + * The temp directory, or {@code null} to use the default temp + * directory + */ + public void setTempDirectory(String tempDirectory) { + this.tempDirectory = tempDirectory; + } + + // + // PRIVATE METHODS + // + /** * Initializes this page. */