otherMatchSection.setText( "Other Matching Rules" );
otherMatchSection.marginWidth = 0;
otherMatchSection.marginHeight = 0;
otherMatchSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
toolkit.createCompositeSeparator( otherMatchSection );
otherMatchSection.addExpansionListener( new ExpansionAdapter()
{
public void expansionStateChanged( ExpansionEvent e )
{
detailForm.reflow( true );
}
} );
mustSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
mustSection.setText( "Used as MUST" );
mustSection.marginWidth = 0;
mustSection.marginHeight = 0;
mustSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
toolkit.createCompositeSeparator( mustSection );
mustSection.addExpansionListener( new ExpansionAdapter()
{
public void expansionStateChanged( ExpansionEvent e )
{
detailForm.reflow( true );
}
} );
maySection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
maySection.setText( "Used as MAY" );
maySection.marginWidth = 0;
maySection.marginHeight = 0;
maySection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
toolkit.createCompositeSeparator( maySection );
maySection.addExpansionListener( new ExpansionAdapter()
{
public void expansionStateChanged( ExpansionEvent e )
{
detailForm.reflow( true );
}
} );
superSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
superSection.setText( "Supertypes" );
superSection.marginWidth = 0;
superSection.marginHeight = 0;
superSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
toolkit.createCompositeSeparator( superSection );
superSection.addExpansionListener( new ExpansionAdapter()
{
public void expansionStateChanged( ExpansionEvent e )
{
detailForm.reflow( true );
}
} );
subSection = toolkit.createSection( detailForm.getBody(), Section.TWISTIE );
subSection.setText( "Subtypes" );
subSection.marginWidth = 0;
subSection.marginHeight = 0;
subSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
toolkit.createCompositeSeparator( subSection );
subSection.addExpansionListener( new ExpansionAdapter()
{
public void expansionStateChanged( ExpansionEvent e )
{
detailForm.reflow( true );
}