From 81d36161ce5367fa7aa9a5d99dc8b80eacfa7cdf Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 24 Jan 2014 14:43:46 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1288 : Migrate I18n and logging support to i18n framework and SLF4J
---
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/ExportLDIFPanel.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/ExportLDIFPanel.java b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/ExportLDIFPanel.java
index 11226ee..3cfa0b8 100644
--- a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/ExportLDIFPanel.java
+++ b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/ExportLDIFPanel.java
@@ -22,6 +22,7 @@
*
*
* Copyright 2008-2009 Sun Microsystems, Inc.
+ * Portions Copyright 2014 ForgeRock AS
*/
package org.opends.guitools.controlpanel.ui;
@@ -60,7 +61,7 @@
import org.opends.guitools.controlpanel.task.Task;
import org.opends.guitools.controlpanel.ui.components.ScheduleSummaryPanel;
import org.opends.guitools.controlpanel.util.Utilities;
-import org.opends.messages.Message;
+import org.forgerock.i18n.LocalizableMessage;
import org.opends.server.tools.ExportLDIF;
/**
@@ -105,7 +106,7 @@
/**
* {@inheritDoc}
*/
- public Message getTitle()
+ public LocalizableMessage getTitle()
{
return INFO_CTRL_PANEL_EXPORT_LDIF_TITLE.get();
}
@@ -371,7 +372,7 @@
setPrimaryValid(lBackend);
setPrimaryValid(lFile);
setPrimaryValid(lExportOptions);
- final LinkedHashSet<Message> errors = new LinkedHashSet<Message>();
+ final LinkedHashSet<LocalizableMessage> errors = new LinkedHashSet<LocalizableMessage>();
String backendName = (String)backends.getSelectedItem();
if (backendName == null)
@@ -401,7 +402,7 @@
String cols = wrapColumn.getText();
int minValue = 1;
int maxValue = 1000;
- Message errMsg = ERR_CTRL_PANEL_INVALID_WRAP_COLUMN.get(minValue,
+ LocalizableMessage errMsg = ERR_CTRL_PANEL_INVALID_WRAP_COLUMN.get(minValue,
maxValue);
int size1 = errors.size();
checkIntValue(errors, cols, minValue, maxValue, errMsg);
@@ -503,7 +504,7 @@
/**
* {@inheritDoc}
*/
- public Message getTaskDescription()
+ public LocalizableMessage getTaskDescription()
{
return INFO_CTRL_PANEL_EXPORT_TASK_DESCRIPTION.get(
backendSet.iterator().next(), fileName);
@@ -513,7 +514,7 @@
* {@inheritDoc}
*/
public boolean canLaunch(Task taskToBeLaunched,
- Collection<Message> incompatibilityReasons)
+ Collection<LocalizableMessage> incompatibilityReasons)
{
boolean canLaunch = true;
if (state == State.RUNNING && runningOnSameServer(taskToBeLaunched))
--
Gitblit v1.10.0