Bug 321474 Refactor data set editor pages' codes[28816]
Build Identifier: 20100729 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/data/ui/util/DataSetProvider.java
{
			columns = new DataSetViewData[]{};
			
			htColumns.put( dataSet, columns );
		}
		return columns;
	}
	/**
	 * populate all output columns in viewer display. The output columns is
	 * retrieved from oda dataset handles's RESULT_SET_PROP and
	 * COMPUTED_COLUMNS_PROP.
	 * 
	 * @throws BirtException
	 */
	public DataSetViewData[] populateAllOutputColumns(
			DataSetHandle dataSetHandle, DataRequestSession session )
			throws BirtException
	{
		DataService.getInstance( ).registerSession( dataSetHandle, session );
		IResultMetaData metaData = session.getDataSetMetaData( dataSetHandle,
				false );
		if ( metaData == null )
			return new DataSetViewData[0];
		DataSetViewData[] items = new DataSetViewData[metaData.getColumnCount( )];
		for ( int i = 0; i < metaData.getColumnCount( ); i++ )
		{
			items[i] = new DataSetViewData( );
			items[i].setName( metaData.getColumnName( i + 1 ) );
			items[i].setDataTypeName( DataAdapterUtil.adapterToModelDataType( metaData.getColumnType( i + 1 ) ) );
			items[i].setAlias( metaData.getColumnAlias( i + 1 ) );