directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r812548 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java
Date Tue, 08 Sep 2009 15:20:36 GMT
Author: seelmann
Date: Tue Sep  8 15:20:34 2009
New Revision: 812548

URL: http://svn.apache.org/viewvc?rev=812548&view=rev
Log:
always refresh modifications logs view at the end of bulk modifications

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java?rev=812548&r1=812547&r2=812548&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java
Tue Sep  8 15:20:34 2009
@@ -32,6 +32,7 @@
 import org.apache.directory.studio.ldapbrowser.common.actions.BrowserSelectionUtils;
 import org.apache.directory.studio.ldapbrowser.core.BrowserCorePlugin;
 import org.apache.directory.studio.ldapbrowser.core.events.AttributesInitializedEvent;
+import org.apache.directory.studio.ldapbrowser.core.events.BulkModificationEvent;
 import org.apache.directory.studio.ldapbrowser.core.events.ChildrenInitializedEvent;
 import org.apache.directory.studio.ldapbrowser.core.events.EntryModificationEvent;
 import org.apache.directory.studio.ldapbrowser.core.events.EntryUpdateListener;
@@ -181,9 +182,9 @@
      */
     public void entryUpdated( EntryModificationEvent event )
     {
-        // performance optimization: refresh only once per second
+        // performance optimization: refresh only once per second, but always at the end
of bulk modifications
         long now = System.currentTimeMillis();
-        if ( lastRefreshTimestamp + 1000 < now )
+        if ( lastRefreshTimestamp + 1000 < now || event instanceof BulkModificationEvent
)
         {
             if ( !( event instanceof AttributesInitializedEvent ) && !( event instanceof
ChildrenInitializedEvent ) )
             {



Mime
View raw message