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
DataSetViewData[] dsItemModel )
	{
		if ( dataSet == null || dsItemModel == null || dsItemModel.length == 0 )
			return;
		htColumns.put( dataSet, dsItemModel );
	}
	/**
	 * This function should be called very carefully. Presently it is only
	 * called in DataSetEditorDialog#performCancel.
	 * 
	 * @param dataSet
	 * @param itemModel
	 */
	public void setModelOfDataSetHandle( DataSetHandle dataSet,
			DataSetViewData[] dsItemModel )
	{
		if ( dataSet == null || dsItemModel == null )
			return;
		updateModel( dataSet, dsItemModel );
		cleanUnusedResultSetColumn( dataSet, dsItemModel );
		cleanUnusedComputedColumn( dataSet, dsItemModel );
		htColumns.put( dataSet, dsItemModel );
	}
	private ColumnHintHandle findColumnHint( DataSetHandle handle,
			String columnName )
	{
		if ( columnName == null || columnName.trim( ).length( ) == 0 )
			return null;
		ColumnHintHandle hint = null;
		Iterator iter = handle.getPropertyHandle( DataSetHandle.COLUMN_HINTS_PROP )