updateApplyButton( );
	private int switchDataSet( String datasetName ) throws ChartException	{		int bCancel = Window.OK;		if ( getDataServiceProvider( ).getBoundDataSet( ) != null				&& getDataServiceProvider( ).getBoundDataSet( )						.equals( datasetName ) )		{			return bCancel;		}		try		{			// Clear old dataset and preview data			getDataServiceProvider( ).setDataSet( datasetName );			tablePreview.clearContents( );			// Try to get report data set			if ( datasetName == null )			{				datasetName = getDataServiceProvider( ).getReportDataSet( );			}			if ( datasetName != null )			{				switchDataTable( );			}			else			{				tablePreview.createDummyTable( );			}			tablePreview.layout( );		}		catch ( Throwable t )		{			throw new ChartException( ChartEnginePlugin.ID,					ChartException.DATA_BINDING,					t );		}		DataDefinitionTextManager.getInstance( ).refreshAll( );		doLivePreview( );		return bCancel;	}