Bug 322512 Refactor data set editor pages' codes[30357]
Build Identifier: Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/ResultSetPreviewPage.java
{
		TableColumn column = null;
		TableLayout layout = new TableLayout( );
		for ( int n = 1; n <= rsMd.getColumnCount( ); n++ )
		{
			column = new TableColumn( resultSetTable, SWT.LEFT );
			try
			{
				column.setText( rsMd.getColumnLabel( n ) );
			}
			catch ( BirtException e )
			{
				
				org.eclipse.datatools.connectivity.internal.ui.dialogs.ExceptionHandler.showException( resultSetTable.getShell( ), Messages.getString( "CssErrDialog.Error" ), e.getLocalizedMessage( ), e );
			}
			column.setResizable( true );
			layout.addColumnData( new ColumnPixelData( 120, true ) );
			addColumnSortListener( column, n );
			column.pack( );
		}
		resultSetTable.setLayout( layout );
		resultSetTable.layout( true );
	}
	private void insertRecords( )
	{
		resultSetTableViewer.setInput( recordList );
	}
	private String getColumnDisplayName( DataSetViewData[] columnsModel,
			int index )
	{