.getVisibleDataSets( ) .iterator( ); iter.hasNext( ); ) { DataSetHandle dataSet = (DataSetHandle) iter.next( ); if ( !dataSet.parametersIterator( ).hasNext( ) ) { avaiableList.add( dataSet.getQualifiedName( ) ); } }
.getVisibleDataSets( );
	private void refreshDataSets( )	{		String selectedDataSetName = dataSetChooser.getText( );		String[] oldList = dataSetChooser.getItems( );		ArrayList avaiableList = new ArrayList( );		for ( Iterator iter = SessionHandleAdapter.getInstance( )				.getReportDesignHandle( )				.getVisibleDataSets( )				.iterator( ); iter.hasNext( ); )		{			DataSetHandle dataSet = (DataSetHandle) iter.next( );			if ( !dataSet.parametersIterator( ).hasNext( ) )			{				avaiableList.add( dataSet.getQualifiedName( ) );			}		}		String[] newList = (String[]) avaiableList.toArray( new String[]{} );		if ( oldList.length != newList.length )		{			dataSetChooser.setItems( newList );			if ( StringUtil.isBlank( selectedDataSetName ) )			{				dataSetChooser.select( 0 );				refreshColumns( false );			}			else			{				dataSetChooser.setText( selectedDataSetName );			}		}	}