directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r881300 - in /directory/studio/trunk: ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/ ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/
Date Tue, 17 Nov 2009 14:20:18 GMT
Author: pamarcelot
Date: Tue Nov 17 14:20:17 2009
New Revision: 881300

URL: http://svn.apache.org/viewvc?rev=881300&view=rev
Log:
Fix for DIRSTUDIO-587 (UI flickers on quick search).
Removed one more useless UI update by adding a custom constructor that does not trigger an
event when associating a connection to a search.

Modified:
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/QuickSearch.java

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java?rev=881300&r1=881299&r2=881300&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
Tue Nov 17 14:20:17 2009
@@ -293,9 +293,8 @@
 
         IBrowserConnection conn = entry.getBrowserConnection();
 
-        QuickSearch quickSearch = new QuickSearch( entry );
+        QuickSearch quickSearch = new QuickSearch( entry, conn );
         quickSearch.getSearchParameter().setName( Messages.getString( "BrowserQuickSearchWidget.QuickSearch"
) ); //$NON-NLS-1$
-        quickSearch.setBrowserConnection( conn );
         quickSearch.getSearchParameter().setSearchBase( entry.getDn() );
         quickSearch.getSearchParameter().setReturningAttributes( ISearch.NO_ATTRIBUTES );
         quickSearch.getSearchParameter().setAliasesDereferencingMethod( conn.getAliasesDereferencingMethod()
);

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/QuickSearch.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/QuickSearch.java?rev=881300&r1=881299&r2=881300&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/QuickSearch.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/QuickSearch.java
Tue Nov 17 14:20:17 2009
@@ -21,6 +21,7 @@
 package org.apache.directory.studio.ldapbrowser.core.model.impl;
 
 
+import org.apache.directory.studio.ldapbrowser.core.model.IBrowserConnection;
 import org.apache.directory.studio.ldapbrowser.core.model.IEntry;
 import org.apache.directory.studio.ldapbrowser.core.model.IQuickSearch;
 
@@ -50,6 +51,19 @@
     }
 
 
+    /**
+     * Instantiates a new quick search.
+     * 
+     * @param searchBaseEntry the search base entry
+     * @param connection the connection
+     */
+    public QuickSearch( IEntry searchBaseEntry, IBrowserConnection connection )
+    {
+        this.searchBaseEntry = searchBaseEntry;
+        this.connection = connection;
+    }
+
+
     public IEntry getSearchBaseEntry()
     {
         return searchBaseEntry;



Mime
View raw message