Add member for temp directory.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:04:07 +0000 (22:04 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:04:07 +0000 (22:04 +0100)
src/de/todesbaum/jsite/gui/PreferencesPage.java

index eeac468..03e4e67 100644 (file)
@@ -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.
         */