Bug 318835 Refactor data set editor pages' codes[27965]
Build Identifier: 20100702 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
{
		resultSetTableViewer = new TableViewer( resultSetTable );
		resultSetTableViewer.setSorter( null );
		resultSetTableViewer.setContentProvider( new IStructuredContentProvider( ) {
			public Object[] getElements( Object inputElement )
			{
				if ( inputElement instanceof List )
				{
					return ( (List) inputElement ).toArray( );
				}
				return new Object[0];
			}
			public void inputChanged( Viewer viewer, Object oldInput,
					Object newInput )
			{
			}
			public void dispose( )
			{
			}
		} );
		resultSetTableViewer.setLabelProvider( new ITableLabelProvider( ) {
			public Image getColumnImage( Object element, int columnIndex )
			{
				return null;
			}
			public String getColumnText( Object element, int columnIndex )
			{
				return ( (CellValue[]) element )[columnIndex].getDisplayValue( );
			}
			public void addListener( ILabelProviderListener listener )