attributeValuesText.setText( "" + valCount ); //$NON-NLS-1$
attributeSizeText.setText( Utils.formatBytes( bytes ) );
if ( schema.hasAttributeTypeDescription( attribute.getDescription() ) )
{
AttributeTypeDescription atd = schema.getAttributeTypeDescription( attribute.getDescription() );
atdOidText.setText( atd.getNumericOid() );
String atdNames = atd.getNames().toString();
atdNamesText.setText( atdNames.substring( 1, atdNames.length() - 1 ) );
atdDescText.setText( Utils.getNonNullString( atd.getDescription() ) );
atdUsageText.setText( Utils.getNonNullString( atd.getUsage() ) );
singleValuedFlag.setSelection( atd.isSingleValued() );
noUserModificationFlag.setSelection( !atd.isUserModifiable() );
collectiveFlag.setSelection( atd.isCollective() );
obsoleteFlag.setSelection( atd.isObsolete() );
String syntaxNumericOid = SchemaUtils.getSyntaxNumericOidTransitive( atd, schema );
int syntaxLength = SchemaUtils.getSyntaxLengthTransitive( atd, schema );
String syntaxDescription = syntaxNumericOid != null ? schema
.getLdapSyntaxDescription( syntaxNumericOid ).getDescription() : null;