{
return this.userSelectedValueEditor;
}
// check attribute preferences
AttributeTypeDescription atd = schema.getAttributeTypeDescription( attributeType );
Map<String, String> attributeValueEditorMap = BrowserCommonActivator.getDefault().getValueEditorsPreferences()
.getAttributeValueEditorMap();
if ( atd.getNumericOID() != null && attributeValueEditorMap.containsKey( atd.getNumericOID().toLowerCase() ) )
{
return ( IValueEditor ) this.class2ValueEditors.get( attributeValueEditorMap.get( atd.getNumericOID()
.toLowerCase() ) );
}
String[] names = atd.getNames();
for ( String name : names )
{
if ( attributeValueEditorMap.containsKey( name.toLowerCase() ) )
{
return ( IValueEditor ) this.class2ValueEditors.get( attributeValueEditorMap.get( name.toLowerCase() ) );
}
}
// check syntax preferences
LdapSyntaxDescription lsd = atd.getSyntaxDescription();
Map<String, String> syntaxValueEditorMap = BrowserCommonActivator.getDefault().getValueEditorsPreferences()
.getSyntaxValueEditorMap();
if ( lsd.getNumericOID() != null && syntaxValueEditorMap.containsKey( lsd.getNumericOID().toLowerCase() ) )
{
return ( IValueEditor ) this.class2ValueEditors.get( syntaxValueEditorMap.get( lsd.getNumericOID()