Add radio button for custom temp directory.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:25:45 +0000 (22:25 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:25:45 +0000 (22:25 +0100)
src/de/todesbaum/jsite/gui/PreferencesPage.java
src/de/todesbaum/jsite/i18n/jSite.properties

index a7004aa..c1a6dbc 100644 (file)
@@ -151,6 +151,9 @@ public class PreferencesPage extends TWizardPage {
                final JRadioButton defaultTempDirectory = new JRadioButton(I18n.getMessage("jsite.preferences.temp-directory.default"));
                tempDirectoryPanel.add(defaultTempDirectory, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(6, 18, 0, 0), 0, 0));
 
+               final JRadioButton customTempDirectory = new JRadioButton(I18n.getMessage("jsite.preferences.temp-directory.custom"));
+               tempDirectoryPanel.add(customTempDirectory, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 18, 0, 0), 0, 0));
+
                I18nContainer.getInstance().registerRunnable(new Runnable() {
 
                        /**
@@ -160,6 +163,7 @@ public class PreferencesPage extends TWizardPage {
                        public void run() {
                                tempDirectoryLabel.setText("<html><b>" + I18n.getMessage("jsite.preferences.temp-directory") + "</b></html>");
                                defaultTempDirectory.setText(I18n.getMessage("jsite.preferences.temp-directory.default"));
+                               customTempDirectory.setText(I18n.getMessage("jsite.preferences.temp-directory.custom"));
                        }
                });
 
index df355c8..c5a0cfe 100644 (file)
@@ -68,6 +68,7 @@ jsite.preferences.heading=Preferences
 jsite.preferences.description=Use this page to manage some global settings.
 jsite.preferences.temp-directory=Temporary Directory
 jsite.preferences.temp-directory.default=Default
+jsite.preferences.temp-directory.custom=Custom
 
 jsite.insert.heading=Project insert
 jsite.insert.description=Please wait while the project is being inserted.