/**
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
*/
protected Control createContents( Composite parent )
{
Connection connection = getConnection( getElement() );
if ( connection != null )
{
super.setMessage( "Connection " + Utils.shorten( connection.getName(), 30 ) );
pages = ConnectionParameterPageManager.getConnectionParameterPages();
tabFolder = new TabFolder( parent, SWT.TOP );
tabs = new TabItem[pages.length];
for ( int i = 0; i < pages.length; i++ )
{
Composite composite = new Composite( tabFolder, SWT.NONE );
GridLayout gl = new GridLayout( 1, false );
composite.setLayout( gl );
pages[i].init( composite, this, connection.getConnectionParameter() );
tabs[i] = new TabItem( tabFolder, SWT.NONE );
tabs[i].setText( pages[i].getPageName() );
tabs[i].setControl( composite );
}