{
public String getColumnText( Object obj, int index )
{
if ( obj instanceof AttributeValueEditorRelation )
{
AttributeValueEditorRelation relation = ( AttributeValueEditorRelation ) obj;
if ( index == 0 )
{
return relation.getAttributeNumericOidOrType();
}
else if ( index == 1 )
{
if ( relation.getAttributeNumericOidOrType() != null )
{
if ( attributeNames2AtdMap.containsKey( relation.getAttributeNumericOidOrType() ) )
{
AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeNames2AtdMap
.get( relation.getAttributeNumericOidOrType() );
String s = atd.getNumericOid();
for ( String name : atd.getNames() )
{
if ( !relation.getAttributeNumericOidOrType().equals( name ) )
{
s += ", " + name; //$NON-NLS-1$
}
}
return s;
}
else if ( attributeOid2AtdMap.containsKey( relation.getAttributeNumericOidOrType() ) )
{
AttributeTypeDescription atd = ( AttributeTypeDescription ) attributeOid2AtdMap
.get( relation.getAttributeNumericOidOrType() );
return atd.toString();
}
}
}
else if ( index == 2 )
{
ValueEditorExtension vee = class2ValueEditorExtensionMap.get( relation.getValueEditorClassName() );
return vee != null ? vee.name : null;
}
}
return null;
}