*/
public Font getFont( Object element, int index )
{
if ( element instanceof ISearchResult )
{
ISearchResult result = ( ISearchResult ) element;
String property = null;
if ( showDn && index == 0 )
{
property = BrowserUIConstants.DN;
}
else if ( showDn && index > 0 && index - 1 < result.getSearch().getReturningAttributes().length )
{
property = result.getSearch().getReturningAttributes()[index - 1];
}
else if ( index < result.getSearch().getReturningAttributes().length )
{
property = result.getSearch().getReturningAttributes()[index];
}
if ( property != null && property == BrowserUIConstants.DN )
{
return null;
}
else if ( property != null )
{
AttributeHierarchy ah = result.getAttributeWithSubtypes( property );
if ( ah != null )
{
for ( int i = 0; i < ah.getAttributes().length; i++ )
{
IAttribute attribute = ah.getAttributes()[i];