From: David ‘Bombe’ Roden Date: Mon, 21 Dec 2009 21:25:45 +0000 (+0100) Subject: Add radio button for custom temp directory. X-Git-Tag: 0.8~27 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7824ba49ef78c463396436448f0717ea691353ed;p=jSite.git Add radio button for custom temp directory. --- 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.