noUserModificationText.setEnabled( atd != null && !atd.isUserModifiable() );
flagSection.layout();
// set syntax content
String lsdOid = null;
LdapSyntax lsd = null;
long lsdLength = 0;
if ( atd != null )
{
lsdOid = SchemaUtils.getSyntaxNumericOidTransitive( atd, getSchema() );
if ( lsdOid != null && getSchema().hasLdapSyntaxDescription( lsdOid ) )
{
lsd = getSchema().getLdapSyntaxDescription( lsdOid );
}
lsdLength = SchemaUtils.getSyntaxLengthTransitive( atd, getSchema() );
}
syntaxLink.setText( getNonNullString( lsd != null ? lsd.getOid() : lsdOid ) );
syntaxLink.setHref( lsd );
syntaxLink.setUnderlined( lsd != null );
syntaxLink.setEnabled( lsd != null );
syntaxDescText.setText( getNonNullString( lsd != null ? lsd.getDescription() : null ) );
lengthText.setText( getNonNullString( lsdLength > 0 ? Long.toString( lsdLength ) : null ) );
syntaxSection.layout();
// set matching rules content
String emrOid = null;