label0.setText( "Report Templates:" );
label0.setText( "Report templates:" );
	public void createControl( Composite parent )	{		Composite composite = new Composite( parent, SWT.NONE );		GridLayout gridLayout = new GridLayout( );		gridLayout.numColumns = 2;		gridLayout.marginHeight = 10;		gridLayout.marginWidth = 10;		gridLayout.horizontalSpacing = 10;		gridLayout.verticalSpacing = 10;		composite.setLayout( gridLayout );		Label label0 = new Label( composite, SWT.NONE );		label0.setText( "Report Templates:" );		Label previewLabel = new Label( composite, SWT.NONE );		previewLabel.setText( "Preview:" );		templateList = new List( composite, SWT.BORDER );		for ( int i = 0; i < templates.length; i++ )		{			templateList.add( templates[i].name );		}		GridData data = new GridData( );		data.widthHint = 170;		data.heightHint = 550;		data.verticalAlignment = GridData.BEGINNING;		data.verticalSpan = 3;		templateList.setLayoutData( data );		previewCanvas = new ImageCanvas( composite, SWT.BORDER );		data = new GridData( );		data.widthHint = 370;		data.heightHint = 474;		data.verticalAlignment = GridData.BEGINNING;		previewCanvas.setLayoutData( data );		Label descriptionTitle = new Label( composite, SWT.NONE );		descriptionTitle.setText( "Description:" );		data = new GridData( );		data.verticalAlignment = GridData.BEGINNING;		data.widthHint = 370;		descriptionTitle.setLayoutData( data );		description = new Label( composite, SWT.WRAP );		data = new GridData( );		data.verticalAlignment = GridData.BEGINNING;		data.widthHint = 370;		description.setLayoutData( data );		hookListeners( );		templateList.select( 0 );		templateListener.handleEvent( new Event( ) );		setControl( composite );	}