TreeItem topItem = createTopTreeItem( tree, TREE_ITEM_DATASETS ); for ( Iterator iterator = dataSetList.iterator( ); iterator.hasNext( ); ) { DataSetHandle handle = (DataSetHandle) iterator.next( ); TreeItem dataSetItem = createSubTreeItem( topItem, DEUtil.getDisplayLabel( handle, false ), ReportPlatformUIImages.getImage( handle ), true );             try { CachedMetaDataHandle cachedMetadata = DataSetUIUtil.getCachedMetaDataHandle( handle ); for ( Iterator iter = cachedMetadata.getResultSet( ).iterator( ); iter.hasNext( ); ) { ResultSetColumnHandle element = (ResultSetColumnHandle) iter.next( ); createSubTreeItem( dataSetItem, element.getColumnName( ), IMAGE_COLUMN, DEUtil.getExpression( element ), element.getColumnName( ), true ); } } catch ( SemanticException e ) { } }
dataSetsItem = createTopTreeItem( tree, TREE_ITEM_DATASETS ); buildDataSetsTree( dataSetList );
	public void createDataSetsTree( List dataSetList )	{		Assert.isNotNull( tree );		TreeItem topItem = createTopTreeItem( tree, TREE_ITEM_DATASETS );		for ( Iterator iterator = dataSetList.iterator( ); iterator.hasNext( ); )		{			DataSetHandle handle = (DataSetHandle) iterator.next( );			TreeItem dataSetItem = createSubTreeItem( topItem,					DEUtil.getDisplayLabel( handle, false ),					ReportPlatformUIImages.getImage( handle ),					true );//			DataSetItemModel[] columns = DataSetManager.getCurrentInstance( )//					.getColumns( handle, false );//			for ( int i = 0; i < columns.length; i++ )//			{//				createSubTreeItem( dataSetItem,//						columns[i].getDisplayName( ),//						IMAGE_COLUMN,//						DEUtil.getExpression( columns[i] ),//						columns[i].getHelpText( ),//						true );//			}						try			{				CachedMetaDataHandle cachedMetadata = DataSetUIUtil.getCachedMetaDataHandle( handle );				for ( Iterator iter = cachedMetadata.getResultSet( ).iterator( ); iter.hasNext( ); )				{					ResultSetColumnHandle element = (ResultSetColumnHandle) iter.next( );					createSubTreeItem( dataSetItem,							element.getColumnName( ),							IMAGE_COLUMN,							DEUtil.getExpression( element ),							element.getColumnName( ),							true );				}			}			catch ( SemanticException e )			{			}		}	}