Bug 322347 Refactor data set editor pages' codes[29949]
Build Identifier: 20100810 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
}
				
		private boolean isDuplicated( String newName )
		{
			if( newName == null || newName.trim( ).length( ) == 0 )
			{
				return false;
			}
			Iterator iter = columnHintMap.keySet( ).iterator( );
			while ( iter.hasNext( ) )
			{
				Object value = columnHintMap.get( iter.next( ) );
				if ( value instanceof ColumnHint )
				{
					ColumnHint column = (ColumnHint) value;
					if ( !column.equals( this.columnDefn.getColumnHint( ) ) )
					{
						if ( newName.equals( column.getProperty( null,
								ColumnHint.ALIAS_MEMBER ) )
								|| newName.equals( column.getProperty( null,
										ColumnHint.COLUMN_NAME_MEMBER ) ) )
							return true;
					}
				}
			}
			return false;
		}
		
	}
}