if ( !quickSearchRunButton.isEnabled() )
{
return;
}
IEntry entry = getSelectedEntry();
if ( entry == null )
{
return;
}
HistoryUtils.save( ATTRIBUTE_HISTORY_DIALOGSETTING_KEY, quickSearchAttributeCombo.getText() );
String[] attributes = HistoryUtils.load( ATTRIBUTE_HISTORY_DIALOGSETTING_KEY );
quickSearchAttributeCombo.setItems( attributes );
quickSearchAttributeCombo.select( 0 );
HistoryUtils.save( VALUE_HISTORY_DIALOGSETTING_KEY, quickSearchValueCombo.getText() );
String[] values = HistoryUtils.load( VALUE_HISTORY_DIALOGSETTING_KEY );
quickSearchValueCombo.setItems( values );
quickSearchValueCombo.select( 0 );
quickSearchValuePP.setProposals( Arrays.asList( values ) );
IBrowserConnection conn = entry.getBrowserConnection();
QuickSearch quickSearch = new QuickSearch( entry );
quickSearch.setName( "Quick Search" );
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() );