From 0a69b8d9c9ee6374d8adb50a11ae5c371edc1227 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 06 Jan 2010 22:39:35 +0000
Subject: [PATCH] Fix for issue 4417 (control panel manage tasks not showing tasks log message) Display the log messages of the selected task. Improve how the panel handle the modification in the contents of the task and when the user modifies the displayed attributes in the table. Before this changes the selection of the table was always lost, with this changes the previously selected task(s) are still selected. Improve some labeling in the 'View' menu.
---
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java
index 73a9cd3..7386aa1 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/TableViewEntryPanel.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2008-2009 Sun Microsystems, Inc.
+ * Copyright 2008-2010 Sun Microsystems, Inc.
*/
package org.opends.guitools.controlpanel.ui;
@@ -433,7 +433,7 @@
/**
* {@inheritDoc}
*/
- protected Set<Object> getValues(String attrName)
+ protected List<Object> getValues(String attrName)
{
return tableModel.getValues(attrName);
}
@@ -691,9 +691,9 @@
{
allSortedValues.clear();
requiredAttrs.clear();
- Set<String> addedAttrs = new HashSet<String>();
+ List<String> addedAttrs = new ArrayList<String>();
Schema schema = getInfo().getServerDescriptor().getSchema();
- Set<Object> ocs = null;
+ List<Object> ocs = null;
for (String attrName : searchResult.getAttributeNames())
{
if (attrName.equalsIgnoreCase(
@@ -798,22 +798,22 @@
}
/**
- * Returns the set of values associated with a given attribute.
+ * Returns the list of values associated with a given attribute.
* @param attrName the name of the attribute.
- * @return the set of values associated with a given attribute.
+ * @return the list of values associated with a given attribute.
*/
- public Set<Object> getValues(String attrName)
+ public List<Object> getValues(String attrName)
{
- Set<Object> values = new LinkedHashSet<Object>();
+ List<Object> values = new ArrayList<Object>();
for (AttributeValuePair valuePair : dataArray)
{
if (valuePair.attrName.equalsIgnoreCase(attrName))
{
if (hasValue(valuePair))
{
- if (valuePair.value instanceof Collection)
+ if (valuePair.value instanceof Collection<?>)
{
- for (Object o : (Collection)valuePair.value)
+ for (Object o : (Collection<?>)valuePair.value)
{
values.add(o);
}
@@ -836,7 +836,7 @@
for (String attrName : schemaReadOnlyAttributesLowerCase)
{
- Set<Object> values = searchResult.getAttributeValues(attrName);
+ List<Object> values = searchResult.getAttributeValues(attrName);
if (!values.isEmpty())
{
newResult.set(attrName, values);
--
Gitblit v1.10.0