From c2f319f5aea84bcd7c277b31be77185f5306fcef Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 21 Dec 2009 22:20:53 +0100 Subject: [PATCH] Add radio button for default temp directory. --- src/de/todesbaum/jsite/gui/PreferencesPage.java | 5 +++++ src/de/todesbaum/jsite/i18n/jSite.properties | 1 + 2 files changed, 6 insertions(+) diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index 97782fa..a7004aa 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -29,6 +29,7 @@ import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JLabel; import javax.swing.JPanel; +import javax.swing.JRadioButton; import de.todesbaum.jsite.i18n.I18n; import de.todesbaum.jsite.i18n.I18nContainer; @@ -147,6 +148,9 @@ public class PreferencesPage extends TWizardPage { final JLabel tempDirectoryLabel = new JLabel("" + I18n.getMessage("jsite.preferences.temp-directory") + ""); tempDirectoryPanel.add(tempDirectoryLabel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); + 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)); + I18nContainer.getInstance().registerRunnable(new Runnable() { /** @@ -155,6 +159,7 @@ public class PreferencesPage extends TWizardPage { @Override public void run() { tempDirectoryLabel.setText("" + I18n.getMessage("jsite.preferences.temp-directory") + ""); + defaultTempDirectory.setText(I18n.getMessage("jsite.preferences.temp-directory.default")); } }); diff --git a/src/de/todesbaum/jsite/i18n/jSite.properties b/src/de/todesbaum/jsite/i18n/jSite.properties index c4c28d2..df355c8 100644 --- a/src/de/todesbaum/jsite/i18n/jSite.properties +++ b/src/de/todesbaum/jsite/i18n/jSite.properties @@ -67,6 +67,7 @@ jsite.node-manager.port=Port 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.insert.heading=Project insert jsite.insert.description=Please wait while the project is being inserted. -- 2.7.4