commits@directory.apache.org
[Top] [All Lists]

svn commit: r520456 - /directory/ldapstudio/trunk/ldapstudio-schemas-plu

Subject: svn commit: r520456 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.java
From:
Date: Tue, 20 Mar 2007 16:07:35 -0000
Author: pamarcelot
Date: Tue Mar 20 09:07:34 2007
New Revision: 520456

URL: http://svn.apache.org/viewvc?view=rev&rev=520456
Log:
Added a SchemaPool Listener to the HierarchyView Controller.

Modified:
    
directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.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=520456&r1=520455&r2=520456
==============================================================================
--- 
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 Mar 20 09:07:34 2007
@@ -30,6 +30,9 @@
 import 
org.apache.directory.ldapstudio.schemas.controller.actions.OpenHierarchyViewPreferencesAction;
 import 
org.apache.directory.ldapstudio.schemas.controller.actions.ShowSubtypeHierarchyAction;
 import 
org.apache.directory.ldapstudio.schemas.controller.actions.ShowSupertypeHierarchyAction;
+import org.apache.directory.ldapstudio.schemas.model.LDAPModelEvent;
+import org.apache.directory.ldapstudio.schemas.model.PoolListener;
+import org.apache.directory.ldapstudio.schemas.model.SchemaPool;
 import 
org.apache.directory.ldapstudio.schemas.view.editors.AttributeTypeFormEditor;
 import 
org.apache.directory.ldapstudio.schemas.view.editors.AttributeTypeFormEditorInput;
 import 
org.apache.directory.ldapstudio.schemas.view.editors.ObjectClassFormEditor;
@@ -58,7 +61,7 @@
  * @author <a href="mailto:dev@xxxxxxxxxxxxxxxxxxxx";>Apache Directory 
Project</a>
  * @version $Rev$, $Date$
  */
-public class HierarchyViewController
+public class HierarchyViewController implements PoolListener
 {
     /** The associated view */
     private HierarchyView view;
@@ -82,6 +85,8 @@
     public HierarchyViewController( HierarchyView view )
     {
         this.view = view;
+        
+        SchemaPool.getInstance().addListener( this );
 
         initAuthorizedPrefs();
         initActions();
@@ -219,5 +224,14 @@
                 }
             }
         } );
+    }
+
+
+    /* (non-Javadoc)
+     * @see 
org.apache.directory.ldapstudio.schemas.model.PoolListener#poolChanged(org.apache.directory.ldapstudio.schemas.model.SchemaPool,
 org.apache.directory.ldapstudio.schemas.model.LDAPModelEvent)
+     */
+    public void poolChanged( SchemaPool p, LDAPModelEvent e )
+    {
+        view.refresh();
     }
 }


<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: r520456 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/controller/HierarchyViewController.java, pamarcelot <=