directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r881295 - /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.java
Date Tue, 17 Nov 2009 14:06:47 GMT
Author: pamarcelot
Date: Tue Nov 17 14:06:47 2009
New Revision: 881295

URL: http://svn.apache.org/viewvc?rev=881295&view=rev
Log:
Fix for DIRSTUDIO-587 (UI flickers on quick search).

Modified:
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserQuickSearchWidget.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=881295&r1=881294&r2=881295&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:06:47 2009
@@ -294,15 +294,15 @@
         IBrowserConnection conn = entry.getBrowserConnection();
 
         QuickSearch quickSearch = new QuickSearch( entry );
-        quickSearch.setName( Messages.getString( "BrowserQuickSearchWidget.QuickSearch" )
); //$NON-NLS-1$
+        quickSearch.getSearchParameter().setName( Messages.getString( "BrowserQuickSearchWidget.QuickSearch"
) ); //$NON-NLS-1$
         quickSearch.setBrowserConnection( conn );
-        quickSearch.setSearchBase( entry.getDn() );
-        quickSearch.setReturningAttributes( ISearch.NO_ATTRIBUTES );
-        quickSearch.setAliasesDereferencingMethod( conn.getAliasesDereferencingMethod() );
-        quickSearch.setReferralsHandlingMethod( conn.getReferralsHandlingMethod() );
-        quickSearch.setCountLimit( conn.getCountLimit() );
-        quickSearch.setTimeLimit( conn.getTimeLimit() );
-        quickSearch.setScope( quickSearchScopeButton.getSelection() ? SearchScope.SUBTREE
: SearchScope.ONELEVEL );
+        quickSearch.getSearchParameter().setSearchBase( entry.getDn() );
+        quickSearch.getSearchParameter().setReturningAttributes( ISearch.NO_ATTRIBUTES );
+        quickSearch.getSearchParameter().setAliasesDereferencingMethod( conn.getAliasesDereferencingMethod()
);
+        quickSearch.getSearchParameter().setReferralsHandlingMethod( conn.getReferralsHandlingMethod()
);
+        quickSearch.getSearchParameter().setCountLimit( conn.getCountLimit() );
+        quickSearch.getSearchParameter().setTimeLimit( conn.getTimeLimit() );
+        quickSearch.getSearchParameter().setScope( quickSearchScopeButton.getSelection()
? SearchScope.SUBTREE : SearchScope.ONELEVEL );
 
         StringBuffer filter = new StringBuffer();
         filter.append( "(" );
@@ -326,7 +326,7 @@
             filter.append( ")" );
         }
         filter.append( ")" );
-        quickSearch.setFilter( filter.toString() );
+        quickSearch.getSearchParameter().setFilter( filter.toString() );
 
         // set new quick search
         conn.getSearchManager().setQuickSearch( quickSearch );



Mime
View raw message