*/
public String getText( Object obj )
{
if ( obj instanceof MatchingRuleImpl )
{
MatchingRuleImpl mr = ( MatchingRuleImpl ) obj;
String name = mr.getName();
if ( name != null )
{
return name + " - (" + mr.getOid() + ")";
}
else
{
return "(None) - (" + mr.getOid() + ")";
}
}
else if ( obj instanceof NonExistingMatchingRule )
{
return ( ( NonExistingMatchingRule ) obj ).getDisplayName();