Bug 319963 Refactor data set editor pages' codes[28800]
Build Identifier: 20100712 Refactor data set editor pages' codes[28800]. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/OutputColumnDefnPage.java
}
		}
	}
	protected String getUniqueColumnName( )
	{
		String name = DEFAULT_COLUMN_NAME;
		int index = 0;
		while ( !isUniqeColumnName( name ) )
		{
			index++;
			name = DEFAULT_COLUMN_NAME + "_" + index;
		}
		return name;
	}
	
	private boolean isUniqeColumnName( String name )
	{
		Iterator iter = columnHints.iterator( );
		while ( iter.hasNext( ) )
		{
			ColumnHintHandle hint = (ColumnHintHandle) iter.next( );
			if ( hint.getColumnName( ) != null
					&& hint.getColumnName( ).equals( name ) )
				return false;
		}
		return true;
	}
	
	/*
	 * (non-Javadoc)