Bug 322346 Refactor data set editor pages' codes[29803]
Build Identifier: 20100810 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 n = 0; n < columns.length; n++ )
		{
			columns[n] = new DataSetViewData( );
			columns[n].setParent( dataSet );
			columns[n].setDataType( metaData.getColumnType( n + 1 ) );
			columns[n].setDataTypeName( metaData.getColumnTypeName( n + 1 ) );
			columns[n].setPosition( n + 1 );
			columns[n].setAlias( metaData.getColumnAlias( n + 1 ) );
			columns[n].setComputedColumn( metaData.isComputedColumn( n + 1 ) );
			String columnName = metaData.getColumnName( n + 1 );
			
			String uniqueColumnName = getUniqueName( orgColumnNameSet,
					uniqueColumnNameSet,
					columnName,
					n );
			
			columns[n].setDataSetColumnName( uniqueColumnName );
			uniqueColumnNameSet.add( uniqueColumnName );
			ColumnHintHandle hint = findColumnHint( dataSet,
					columns[n].getName( ) );
			if ( hint != null )
			{
				columns[n].setAnalysis( hint.getAnalysis( ) );
				columns[n].setAnalysisColumn( hint.getAnalysisColumn( ) );
				columns[n].setACLExpression( hint.getACLExpression( ) );
				columns[n].setFormat( hint.getFormat( ) );
				columns[n].setDisplayLength( hint.getDisplayLength( ) );
				columns[n].setHeading( hint.getHeading( ) );
				columns[n].setHelpText( hint.getHelpText( ) );