// update state
String url = "";
boolean enabled = true;
if ( input != null && input instanceof ISearch )
{
ISearch search = ( ISearch ) input;
if ( filteredAndSortedElements.length < elements.length )
{
url += filteredAndSortedElements.length + " of ";
}
if ( search.getSearchResults() == null )
{
url += "Search not performed - ";
enabled = false;
}
else if ( search.getSearchResults().length == 1 )
{
url += search.getSearchResults().length + " Result - ";
}
else
{
url += search.getSearchResults().length + " Results - ";
}
// url += search.getURL();
url += "Search Base: " + search.getSearchBase().toString() + " - ";
url += "Filter: " + search.getFilter();
boolean showDn = BrowserUIPlugin.getDefault().getPreferenceStore().getBoolean(
BrowserUIConstants.PREFERENCE_SEARCHRESULTEDITOR_SHOW_DN )
|| search.getReturningAttributes().length == 0;
this.configuration.getFilter().inputChanged( search, showDn );
this.configuration.getSorter().inputChanged( search, showDn );
}
else
{