{
supertypeSection.setText( "Supertype (" + "1" + ")" );
if ( getSchema().hasAttributeTypeDescription( superType ) )
{
AttributeTypeDescription supAtd = getSchema().getAttributeTypeDescription( superType );
Hyperlink superLink = toolkit.createHyperlink( superClient, SchemaUtils.toString( supAtd ),
SWT.WRAP );
superLink.setHref( supAtd );
superLink.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
superLink.setUnderlined( true );
superLink.setEnabled( true );
superLink.addHyperlinkListener( this );
}
else
{
Hyperlink superLink = toolkit.createHyperlink( superClient, superType, SWT.WRAP );
superLink.setHref( null );
superLink.setUnderlined( false );
superLink.setEnabled( false );
}
}
else
{
supertypeSection.setText( "Supertype (0)" );