directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r512323 - in /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas: controller/ view/viewers/
Date Tue, 27 Feb 2007 16:58:56 GMT
Author: pamarcelot
Date: Tue Feb 27 08:58:55 2007
New Revision: 512323

URL: http://svn.apache.org/viewvc?view=rev&rev=512323
Log:
Fixed a bug that caused the TreeViewers to close every opened node when refreshing the viewer.
The opened nodes now stay correctly opened.

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyView.java
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasView.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.java?view=diff&rev=512323&r1=512322&r2=512323
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.java
Tue Feb 27 08:58:55 2007
@@ -229,7 +229,7 @@
             { 
                 if ( authorizedPrefs.contains( event.getProperty() ) )
                 {
-                    view.getViewer().refresh();
+                    view.refresh();
                 }
             }
         } );

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java?view=diff&rev=512323&r1=512322&r2=512323
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/SchemasViewController.java
Tue Feb 27 08:58:55 2007
@@ -591,7 +591,7 @@
             {
                 if ( authorizedPrefs.contains( event.getProperty() ) )
                 {
-                    view.getViewer().refresh();
+                    view.refresh();
                 }
             }
         } );

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyView.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyView.java?view=diff&rev=512323&r1=512322&r2=512323
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyView.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/HierarchyView.java
Tue Feb 27 08:58:55 2007
@@ -94,17 +94,16 @@
 
 
     /**
-     * Refreshes the entire view
+     * Refresh the viewer
      */
     public void refresh()
     {
-        //it seems there is a bug with the default element expanding system
         Object[] exp = viewer.getExpandedElements();
 
-        //refresh the tree viewer
+        // Refresh the tree viewer
         viewer.refresh();
 
-        //expand all the previsouly expanded elements
+        // Expand all the previsouly expanded elements
         for ( Object object : exp )
         {
             viewer.setExpandedState( object, true );

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasView.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasView.java?view=diff&rev=512323&r1=512322&r2=512323
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasView.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/viewers/SchemasView.java
Tue Feb 27 08:58:55 2007
@@ -94,17 +94,16 @@
 
 
     /**
-     * Refresh the entire view
+     * Refresh the viewer
      */
     public void refresh()
     {
-        //it seems there is a bug with the default element expanding system
         Object[] exp = viewer.getExpandedElements();
 
-        //refresh the tree viewer
+        // Refresh the tree viewer
         viewer.refresh();
 
-        //expand all the previsouly expanded elements
+        // Expand all the previsouly expanded elements
         for ( Object object : exp )
         {
             viewer.setExpandedState( object, true );
@@ -117,8 +116,7 @@
      */
     public void poolChanged( SchemaPool p, LDAPModelEvent e )
     {
-        //refresh the tree viewer
-        viewer.refresh();
+        refresh();
     }
 
 
@@ -157,20 +155,6 @@
         {
             logger.debug( "error when saving schemas on disk after asking for confirmation"
); //$NON-NLS-1$
         }
-        //		
-        //		IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
-        //		IEditorPart[] editors = page.getDirtyEditors();
-        //		for (IEditorPart part : editors) {
-        //			if(part instanceof AttributeTypeFormEditor) {
-        //				AttributeTypeFormEditor editor = (AttributeTypeFormEditor) part;
-        //				editor.setDirty(false);
-        //			}
-        //			else if (part instanceof ObjectClassFormEditor) {
-        //				ObjectClassFormEditor editor = (ObjectClassFormEditor) part;
-        //				editor.setDirty(false);
-        //			}
-        //		}
-
     }
 
 



Mime
View raw message