protected Control createContents( Composite parent )
{
PlatformUI.getWorkbench().getHelpSystem().setHelp( parent,
ConnectionUIConstants.PLUGIN_ID + "." + "tools_connection_properties" ); //$NON-NLS-1$ //$NON-NLS-2$
Connection connection = getConnection( getElement() );
if ( connection != null )
{
super
.setMessage( Messages.getString( "ConnectionPropertyPage.Connection" ) + Utils.shorten( connection.getName(), 30 ) ); //$NON-NLS-1$
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 );
}