Bug 209910 Drag the dataset from library, the resultset column number is doubled
Reproduce step: 1. Create one data set in library. 2. Drag it into a report design. 3. Open the data set editor, switch to the output column page, the result set number is doubled. I found there is something wrong in the org.eclipse.birt.report.model.api.util.CompatibilityUtil class. The method addStructures()will add structures list twice when the propHandle is not local.
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/MetaDataPopulator.java
hasResultSetHint = populateResultsetHint( dataSetHandle, metaData );
		if ( !hasResultSetHint )
		{
			hasResultSetHint = checkHandleType( dataSetHandle );
		}
		return hasResultSetHint || hasColumnHint;
	}
	/**
	 * 
	 * @param dataSetHandle
	 * @param metaData
	 * @param columnCount
	 * @param hasResultSetHint
	 * @return
	 * @throws BirtException
	 */
	private static boolean populateResultsetHint( DataSetHandle dataSetHandle,
			IResultMetaData metaData ) throws BirtException
	{
		boolean hasResultSetHint = false;
		int columnCount = 0;
		HashSet orgColumnNameSet = new HashSet( );
		HashSet uniqueColumnNameSet = new HashSet( );
		if ( metaData != null )
		{
			columnCount = metaData.getColumnCount( );
			for ( int n = 0; n < columnCount; n++ )
			{
				orgColumnNameSet.add( metaData.getColumnName( n + 1 ) );
			}