String[] oldList = dataSetChooser.getItems( ); List avaiableList = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ) .getVisibleDataSets( ); String[] newList = (String[]) avaiableList.toArray( new String[]{} );
String[] oldList = dataSetChooser.getItems( ); String[] newList = ChoiceSetFactory.getDataSets( );
	private void refreshDataSets( )	{		String selectedDataSetName = dataSetChooser.getText( );		String[] oldList = dataSetChooser.getItems( );		List avaiableList = SessionHandleAdapter.getInstance( )				.getReportDesignHandle( )				.getVisibleDataSets( );		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 );			}		}	}