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