From cd0daf51edd2805cdaef032ab5e96553fb672165 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.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
index 50447e3..ca8ccbe 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/ViewEntryPanel.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;
@@ -257,7 +257,7 @@
       title.setIcon(null);
     }
 
-    Set<Object> ocs =
+    List<Object> ocs =
       sr.getAttributeValues(ServerConstants.OBJECTCLASS_ATTRIBUTE_TYPE_NAME);
     Schema schema = getInfo().getServerDescriptor().getSchema();
     if (!ocs.isEmpty() && (schema != null))
@@ -289,12 +289,12 @@
   /**
    * Returns an object class value representing all the object class values of
    * the entry.
-   * @param ocValues the set of object class values.
+   * @param ocValues the list of object class values.
    * @param schema the schema.
    * @return an object class value representing all the object class values of
    * the entry.
    */
-  protected ObjectClassValue getObjectClassDescriptor(Set<Object> ocValues,
+  protected ObjectClassValue getObjectClassDescriptor(List<Object> ocValues,
       Schema schema)
   {
     ObjectClass structuralObjectClass = null;
@@ -418,12 +418,12 @@
   /**
    * Appends the LDIF lines corresponding to the different values of an
    * attribute to the provided StringBuilder.
-   * @param sb the StringBuilder that must be udpated.
+   * @param sb the StringBuilder that must be updated.
    * @param attrName the attribute name.
    * @param values the attribute values.
    */
   protected void appendLDIFLines(StringBuilder sb, String attrName,
-      Set<Object> values)
+      List<Object> values)
   {
     for (Object value : values)
     {
@@ -434,7 +434,7 @@
   /**
    * Appends the LDIF line corresponding to the value of an
    * attribute to the provided StringBuilder.
-   * @param sb the StringBuilder that must be udpated.
+   * @param sb the StringBuilder that must be updated.
    * @param attrName the attribute name.
    * @param value the attribute value.
    */
@@ -558,7 +558,7 @@
    * @param attrName the attribute name.
    * @return the values associated with a given attribute.
    */
-  protected abstract Set<Object> getValues(String attrName);
+  protected abstract List<Object> getValues(String attrName);
 
   /**
    * Sets the values displayed in the panel for a given attribute in the
@@ -568,8 +568,8 @@
    */
   protected void setValues(CustomSearchResult sr, String attrName)
   {
-    Set<Object> values = getValues(attrName);
-    Set<Object> valuesToSet = new LinkedHashSet<Object>();
+    List<Object> values = getValues(attrName);
+    List<Object> valuesToSet = new ArrayList<Object>();
     for (Object value : values)
     {
       if (value instanceof ObjectClassValue)

--
Gitblit v1.10.0