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.data/src/org/eclipse/birt/report/designer/data/ui/dataset/ResultSetColumnPage.java
for ( int i = 0; iter.hasNext( ); i++ )
			{
				ResultSetColumnModel model = (ResultSetColumnModel) iter.next( );
				ResultSetColumn column = StructureFactory.createResultSetColumn( );
				column.setColumnName( model.columnName );
				column.setDataType( dataTypes[model.dataType].getName( ) );
				column.setPosition( new Integer( i ) );
				resultSetPropertyHandle.addItem( column );
				ColumnHintHandle columnHintHandle = null;
				for ( Iterator hintIter = columnHintPropertyHandle.iterator( ); hintIter.hasNext( ); )
				{
					columnHintHandle = (ColumnHintHandle) hintIter.next( );
					if ( columnHintHandle.getColumnName( )
							.equals( model.columnName ) )
					{
						break;
					}
					columnHintHandle = null;
				}
				if ( columnHintHandle == null )
				{
					ColumnHint columnHint = StructureFactory.createColumnHint( );
					columnHint.setProperty( ColumnHint.COLUMN_NAME_MEMBER,
							model.columnName );
					columnHint.setProperty( ColumnHint.DISPLAY_NAME_ID_MEMBER, model.displayNameKey );
					columnHintHandle = (ColumnHintHandle) columnHintPropertyHandle.addItem( columnHint );
				}
				else
				{
					columnHintHandle.setDisplayName( model.displayName );