TreeItem topItem = createTopTreeItem( tree, TREE_ITEM_PARAMETERS ); for ( Iterator iterator = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getAllParameters( ) .iterator( ); iterator.hasNext( ); ) { ReportElementHandle handle = (ReportElementHandle) iterator.next( ); if ( handle instanceof ParameterHandle ) { createSubTreeItem( topItem, DEUtil.getDisplayLabel( handle, false ), ReportPlatformUIImages.getImage( handle ), DEUtil.getExpression( handle ), ( (ParameterHandle) handle ).getHelpText( ), true ); } else if ( handle instanceof ParameterGroupHandle ) { TreeItem groupItem = createSubTreeItem( topItem, DEUtil.getDisplayLabel( handle, false ), ReportPlatformUIImages.getImage( handle ), true ); for ( Iterator itor = ( (ParameterGroupHandle) handle ).getParameters( ) .iterator( ); itor.hasNext( ); ) { ParameterHandle parameter = (ParameterHandle) itor.next( ); createSubTreeItem( groupItem, parameter.getDisplayLabel( ), ReportPlatformUIImages.getImage( handle ), DEUtil.getExpression( parameter ), parameter.getDisplayLabel( ), true ); } } }
parametersItem = createTopTreeItem( tree, TREE_ITEM_PARAMETERS ); buildParameterTree( );
	public void createParamtersTree( )	{		Assert.isNotNull( tree );		TreeItem topItem = createTopTreeItem( tree, TREE_ITEM_PARAMETERS );		for ( Iterator iterator = SessionHandleAdapter.getInstance( )				.getReportDesignHandle( )				.getAllParameters( )				.iterator( ); iterator.hasNext( ); )		{			ReportElementHandle handle = (ReportElementHandle) iterator.next( );			if ( handle instanceof ParameterHandle )			{				createSubTreeItem( topItem,						DEUtil.getDisplayLabel( handle, false ),						ReportPlatformUIImages.getImage( handle ),						DEUtil.getExpression( handle ),						( (ParameterHandle) handle ).getHelpText( ),						true );			}			else if ( handle instanceof ParameterGroupHandle )			{				TreeItem groupItem = createSubTreeItem( topItem,						DEUtil.getDisplayLabel( handle, false ),						ReportPlatformUIImages.getImage( handle ),						true );				for ( Iterator itor = ( (ParameterGroupHandle) handle ).getParameters( )						.iterator( ); itor.hasNext( ); )				{					ParameterHandle parameter = (ParameterHandle) itor.next( );					createSubTreeItem( groupItem,							parameter.getDisplayLabel( ),							ReportPlatformUIImages.getImage( handle ),							DEUtil.getExpression( parameter ),							parameter.getDisplayLabel( ),							true );				}			}		}	}