final Composite mainPropertyEditorOuterComposite = new Composite( composite, SWT.NONE );
mainPropertyEditorOuterComposite.setLayout( glayout( 1, 0, 4, 0, 0 ) );
final Composite mainPropertyEditorComposite = new Composite( mainPropertyEditorOuterComposite, SWT.NONE );
final Sash sash = new Sash( composite, SWT.VERTICAL );
sash.setLayoutData( gdhhint( gdvfill(), 1 ) );
final Composite relatedContentComposite = new Composite( composite, SWT.NONE );
relatedContentComposite.setLayout( glayout( 2, 0, 0 ) );
relatedContentComposite.setData( RELATED_CONTENT_WIDTH, ( (double) part.getRelatedContentWidth() ) / ( (double) 100 ) );
composite.addListener
(
SWT.Resize,
new org.eclipse.swt.widgets.Listener()
{
public void handleEvent( final Event event )
{
refreshSashFormLayout( composite, mainPropertyEditorComposite, relatedContentComposite, sash );
}
}
);
sash.addListener
(
SWT.Selection,
new org.eclipse.swt.widgets.Listener()
{
public void handleEvent( final Event event )
{
final int width = composite.getClientArea().width - sash.getBounds().width;
double ratio = ( (double) ( width - event.x ) ) / ( (double) width );
if( ratio < 0.2d )
{
ratio = 0.2d;