Bug 319351 Refactor data set editor pages' codes[28193]
Build Identifier: 20100708 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/DataSetProvider.java
for ( int i = 0; i < metaData.getColumnCount( ); i++ )
		{
			items[i] = new DataSetViewData( );
			items[i].setName( metaData.getColumnName( i + 1 ) );
			items[i].setDataTypeName( DataAdapterUtil.adapterToModelDataType( metaData.getColumnType( i + 1 ) ) );
			items[i].setAlias( metaData.getColumnAlias( i + 1 ) );
			items[i].setComputedColumn( metaData.isComputedColumn( i + 1 ) );
			items[i].setPosition( i + 1 );
			items[i].setDataType( metaData.getColumnType( i + 1 ) );
			ColumnHintHandle hint = findColumnHint( dataSetHandle,
					items[i].getName( ) );
			if ( hint != null )
			{
				if ( !items[i].isComputedColumn( ) )
				{
					items[i].setAnalysis( getDefaultAnalysisType( items[i].getName( ),
							items[i].getDataTypeName( ),
							hint.getAnalysis( ) ) );
					if ( DesignChoiceConstants.ANALYSIS_TYPE_ATTRIBUTE.equals( hint.getAnalysis( ) ) )
					{
						items[i].setAnalysisColumn( hint.getAnalysisColumn( ) );
					}
					else
					{
						items[i].setAnalysisColumn( null );
					}
				}
				else
				{
					items[i].setAnalysis( hint.getAnalysis( ) );