directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r822007 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java
Date Mon, 05 Oct 2009 21:05:08 GMT
Author: seelmann
Date: Mon Oct  5 21:05:08 2009
New Revision: 822007

URL: http://svn.apache.org/viewvc?rev=822007&view=rev
Log:
no need to fire events while loading connections

Modified:
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java?rev=822007&r1=822006&r2=822007&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionManager.java
Mon Oct  5 21:05:08 2009
@@ -83,7 +83,12 @@
     public BrowserConnectionManager()
     {
         this.connectionMap = new HashMap<String, IBrowserConnection>();
+
+        // no need to fire events while loading connections
+        EventRegistry.suspendEventFiringInCurrentThread();
         loadBrowserConnections();
+        EventRegistry.resumeEventFiringInCurrentThread();
+
         ConnectionEventRegistry.addConnectionUpdateListener( this, ConnectionCorePlugin.getDefault().getEventRunner()
);
         EventRegistry.addSearchUpdateListener( this, BrowserCorePlugin.getDefault().getEventRunner()
);
         EventRegistry.addBookmarkUpdateListener( this, BrowserCorePlugin.getDefault().getEventRunner()
);



Mime
View raw message