Bug 315170 Refactor data set editor pages' codes[26441]
Build Identifier: 20100528 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/OutputColumnDefnPage.java
}
	}
	protected void updateColumnDefMap( String oldName, ColumnDefn column )
	{
		if ( rsColumnMap != null
				&& oldName != null && rsColumnMap.get( oldName ) != null )
		{
			ResultSetColumn rsColumn = (ResultSetColumn)rsColumnMap.get( oldName );
			String newName = column.getColumnName( );
			if ( !oldName.equals( newName ) )
			{
				rsColumnMap.remove( oldName );
				columnHintMap.remove( oldName );
			}
			rsColumnMap.put( newName, column.getResultSetColumn( ) );
			columnHintMap.put( newName, column.getColumnHint( ) );
			
		}
	}
	protected final int getTypeIndex( String dataTypeName )
	{
		for ( int n = 0; n < dataTypes.length; n++ )
		{
			if ( dataTypes[n].getName( ).equals( dataTypeName ) )
			{
				return n;
			}
		}
		return this.defaultDataTypeIndex;
	}