directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r513424 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewContentProvider.java
Date Thu, 01 Mar 2007 18:18:14 GMT
Author: pamarcelot
Date: Thu Mar  1 10:18:14 2007
New Revision: 513424

URL: http://svn.apache.org/viewvc?view=rev&rev=513424
Log:
Fixed a bug that caused the OC 'top' to appear twice.

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewContentProvider.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewContentProvider.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewContentProvider.java?view=diff&rev=513424&r1=513423&r2=513424
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewContentProvider.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyViewContentProvider.java
Thu Mar  1 10:18:14 2007
@@ -217,14 +217,6 @@
                 if ( !Activator.getDefault().getDialogSettings().getBoolean(
                     HideObjectClassesAction.HIDE_OBJECT_CLASSES_DS_KEY ) )
                 {
-                    //bootstrap the tree exploring process by adding the top node into the
tree
-                    ObjectClass top = schemaPool.getObjectClass( "top" ); //$NON-NLS-1$
-                    if ( top != null )
-                    {
-                        ObjectClassWrapper topWrapper = new ObjectClassWrapper( top, intermediate
);
-                        ocList.add( topWrapper );
-                    }
-
                     for ( int i = 0; i < objectClasses.length; i++ )
                     {
                         ObjectClass oClass = objectClasses[i];
@@ -233,7 +225,10 @@
                         if ( sups.length == 0 )
                         {
                             ObjectClassWrapper wrapper = new ObjectClassWrapper( oClass,
intermediate );
-                            wrapper.setState( ObjectClassWrapper.State.unResolved );
+                            if ( !"2.5.6.0".equals( oClass.getOid() )  )
+                            {
+                                wrapper.setState( ObjectClassWrapper.State.unResolved );
+                            }
                             ocList.add( wrapper );
                             this.hasChildren( wrapper );
                         }



Mime
View raw message