From 2d5ba62ec69e7ffa4b98149a9f6fef539e38251f Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 16 Jun 2009 10:48:51 +0000
Subject: [PATCH] Fix for issue 3912 (Default automatic Backup should be offered by the control panel)
---
opends/src/guitools/org/opends/guitools/controlpanel/ui/MonitoringAttributesViewPanel.java | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MonitoringAttributesViewPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MonitoringAttributesViewPanel.java
index c92272b..6cba7f8 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MonitoringAttributesViewPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MonitoringAttributesViewPanel.java
@@ -91,7 +91,8 @@
* Creates an instance of this panel that uses MonitoringAttributes as
* attributes.
* @param attributes the list of possible attributes.
- * @return an instance of this panel that uses String as attributes.
+ * @return an instance of this panel that uses MonitoringAttributes as
+ * attributes.
*/
public static MonitoringAttributesViewPanel<MonitoringAttributes>
createMonitoringAttributesInstance(
@@ -101,6 +102,18 @@
}
/**
+ * Creates an instance of this panel that uses Message as
+ * attributes.
+ * @param attributes the list of possible attributes.
+ * @return an instance of this panel that uses Message as attributes.
+ */
+ public static MonitoringAttributesViewPanel<Message>
+ createMessageInstance(LinkedHashSet<Message> attributes)
+ {
+ return new MonitoringAttributesViewPanel<Message>(attributes);
+ }
+
+ /**
* {@inheritDoc}
*/
@Override
@@ -354,6 +367,10 @@
{
m = ((MonitoringAttributes)operation).getMessage();
}
+ else if (operation instanceof Message)
+ {
+ m = (Message)operation;
+ }
else
{
m = Message.raw(operation.toString());
--
Gitblit v1.10.0