From 8bd438c76de39ac23b6394a52f628b7f1336af09 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 31 May 2010 09:55:31 +0000
Subject: [PATCH] Provide the necessary operational attributes for External Changelog entries, to make them LDAP compliant and to allow browsing them through the Control-Panel. Improve browsing in the Control-Panel to make use of hasSubordinates as well as numSubordinates operational attributes. Improve Control-Panel look and feel when browsing the ECL

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java
index bf7480e..cf4413f 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/SimplifiedViewEntryPanel.java
@@ -483,6 +483,17 @@
         else
         {
           gbc.anchor = GridBagConstraints.WEST;
+          if (values.size() == 1)
+          {
+            Object v = values.get(0);
+            if (v instanceof String)
+            {
+              if (((String)v).indexOf("\n") != -1)
+              {
+                gbc.anchor = GridBagConstraints.NORTHWEST;
+              }
+            }
+          }
         }
         gbc.insets.left = 0;
         gbc.gridwidth = GridBagConstraints.RELATIVE;
@@ -739,7 +750,7 @@
     Schema schema = getInfo().getServerDescriptor().getSchema();
     if (isRootEntry)
     {
-      String[] attrsNotToAdd = {"entryuuid", "hasnumsubordinates",
+      String[] attrsNotToAdd = {"entryuuid", "hassubordinates",
           "numsubordinates", "subschemasubentry", "entrydn",
       "hassubordinates"};
       for (String attr : sr.getAttributeNames())

--
Gitblit v1.10.0