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/BackupPanel.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/BackupPanel.java b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/BackupPanel.java
index 4d3eede..3b7c66d 100644
--- a/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/BackupPanel.java
+++ b/opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/BackupPanel.java
@@ -22,6 +22,7 @@
*
*
* Copyright 2008-2009 Sun Microsystems, Inc.
+ * Portions Copyright 2014 ForgeRock AS
*/
package org.opends.guitools.controlpanel.ui;
@@ -66,7 +67,7 @@
import org.opends.guitools.controlpanel.ui.components.ScheduleSummaryPanel;
import org.opends.guitools.controlpanel.util.BackgroundTask;
import org.opends.guitools.controlpanel.util.Utilities;
-import org.opends.messages.Message;
+import org.forgerock.i18n.LocalizableMessage;
import org.opends.server.tools.BackUpDB;
import org.opends.server.types.BackupDirectory;
import org.opends.server.types.BackupInfo;
@@ -119,7 +120,7 @@
/**
* {@inheritDoc}
*/
- public Message getTitle()
+ public LocalizableMessage getTitle()
{
return INFO_CTRL_PANEL_BACKUP_TITLE.get();
}
@@ -364,7 +365,7 @@
setPrimaryValid(lBackupOptions);
backupIDInitialized = false;
- final LinkedHashSet<Message> errors = new LinkedHashSet<Message>();
+ final LinkedHashSet<LocalizableMessage> errors = new LinkedHashSet<LocalizableMessage>();
if (!allBackends.isSelected())
{
@@ -554,7 +555,7 @@
}
if (errors.isEmpty())
{
- Message initMsg;
+ LocalizableMessage initMsg;
if (allBackends.isSelected())
{
initMsg = INFO_CTRL_PANEL_RUN_BACKUP_ALL_BACKENDS.get();
@@ -699,7 +700,7 @@
/**
* {@inheritDoc}
*/
- public Message getTaskDescription()
+ public LocalizableMessage getTaskDescription()
{
return INFO_CTRL_PANEL_BACKUP_TASK_DESCRIPTION.get(
Utilities.getStringFromCollection(backendSet, ", "), dir);
@@ -709,7 +710,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