From ee3642c86959b44af3ff0e9fde9950a966527596 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 07 Aug 2007 22:32:50 +0000
Subject: [PATCH] The following modifications have the following goals:
---
opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java | 30 ++++++++++++++++++------------
1 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java
index dd0b8bc..f8d117c 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/ButtonsPanel.java
@@ -165,27 +165,33 @@
private void createButtons()
{
nextButton =
- createButton("next-button-label", "next-button-tooltip",
+ createButton(getMsg("next-button-label"), getMsg("next-button-tooltip"),
ButtonName.NEXT);
previousButton =
- createButton("previous-button-label", "previous-button-tooltip",
+ createButton(getMsg("previous-button-label"),
+ getMsg("previous-button-tooltip"),
ButtonName.PREVIOUS);
String tooltip;
GuiApplication application = getApplication();
- tooltip = application.getQuitButtonToolTipKey();
+ tooltip =
+ application.getI18n().getMsg(application.getQuitButtonToolTipKey());
quitButton =
- createButton("quit-button-label", tooltip, ButtonName.QUIT);
+ createButton(getMsg("quit-button-label"), tooltip, ButtonName.QUIT);
- tooltip = application.getCloseButtonToolTipKey();
- closeButton = createButton("close-button-label", tooltip, ButtonName.CLOSE);
+ tooltip =
+ application.getI18n().getMsg(application.getCloseButtonToolTipKey());
+ closeButton = createButton(getMsg("close-button-label"),
+ tooltip, ButtonName.CLOSE);
- String label = application.getFinishButtonLabelKey();
- tooltip = application.getFinishButtonToolTipKey();
+ String label =
+ application.getI18n().getMsg(application.getFinishButtonLabelKey());
+ tooltip =
+ application.getI18n().getMsg(application.getFinishButtonToolTipKey());
finishButton = createButton(label, tooltip, ButtonName.FINISH);
}
@@ -271,15 +277,15 @@
/**
* Create a button.
- * @param labelKey the key in the properties file for the label.
- * @param tooltipKey the key in the properties file for the tooltip.
+ * @param label the label of the button.
+ * @param tooltip the tooltip of the button.
* @param buttonName the ButtonName.
* @return a new button with the specified parameters.
*/
- private JButton createButton(String labelKey, String tooltipKey,
+ private JButton createButton(String label, String tooltip,
ButtonName buttonName)
{
- JButton b = UIFactory.makeJButton(getMsg(labelKey), getMsg(tooltipKey));
+ JButton b = UIFactory.makeJButton(label, tooltip);
final ButtonName fButtonName = buttonName;
--
Gitblit v1.10.0