if ( text.length( ) <= 15 ) { GridData gd = new GridData( ); gd.widthHint = width; button.setLayoutData( gd ); }
GridData gd = new GridData( ); gd.widthHint = width; button.setLayoutData( gd );
	protected Button createToggleButton( Composite parent, String text )	{		Button button = new Button( parent, SWT.TOGGLE );		button.setText( text );		// Use GC to calculate the button width		GC gc = new GC( parent );		int width = Math.max( 80, gc.textExtent( text ).x );		gc.dispose( );		if ( text.length( ) <= 15 )		{			GridData gd = new GridData( );			gd.widthHint = width;			button.setLayoutData( gd );		}		buttonRegistry.add( button );		return button;	}