public boolean select( Viewer viewer, Object parentElement, Object element )
{
if ( element instanceof ISearchResult )
{
ISearchResult searchResult = ( ISearchResult ) element;
String[] returningAttributes = searchResult.getSearch().getReturningAttributes();
for ( int r = 0; r < returningAttributes.length; r++ )
{
String ra = returningAttributes[r];
AttributeHierarchy ah = searchResult.getAttributeWithSubtypes( ra );
if ( ah != null )
{
IAttribute[] attributes = ah.getAttributes();
for ( int i = 0; i < attributes.length; i++ )
{
IValue[] values = attributes[i].getValues();
for ( int k = 0; k < values.length; k++ )
{
if ( this.goesThroughQuickFilter( values[k] ) )
{
return true;
}
}
}
}
}
// IAttribute[] attributes = searchResult.getAttributes();
// for (int i = 0; i < attributes.length; i++) {
// IValue[] values = attributes[i].getValues();
// for (int k = 0; k < values.length; k++) {
// if (this.goesThroughQuickFilter(values[k])) {
// return true;
// }
// }
// }
if ( this.showDn
&& searchResult.getDn().toString().toUpperCase().indexOf( this.quickFilterValue.toUpperCase() ) > -1 )
{
return true;
}
return false;