From 7824ba49ef78c463396436448f0717ea691353ed 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:25:45 +0100 Subject: [PATCH 1/1] Add radio button for custom temp directory. --- src/de/todesbaum/jsite/gui/PreferencesPage.java | 4 ++++ src/de/todesbaum/jsite/i18n/jSite.properties | 1 + 2 files changed, 5 insertions(+) diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index a7004aa..c1a6dbc 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -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("" + I18n.getMessage("jsite.preferences.temp-directory") + ""); defaultTempDirectory.setText(I18n.getMessage("jsite.preferences.temp-directory.default")); + customTempDirectory.setText(I18n.getMessage("jsite.preferences.temp-directory.custom")); } }); diff --git a/src/de/todesbaum/jsite/i18n/jSite.properties b/src/de/todesbaum/jsite/i18n/jSite.properties index df355c8..c5a0cfe 100644 --- a/src/de/todesbaum/jsite/i18n/jSite.properties +++ b/src/de/todesbaum/jsite/i18n/jSite.properties @@ -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. -- 2.7.4