Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
getDataServiceProvider( ).setDataSet( null );
		}
	}
	private void refreshTableColor( )
	{
		
		for ( int i = 0; i < tablePreview.getColumnNumber( ); i++ )
		{
			tablePreview.setColumnColor( i,
					ColorPalette.getInstance( )
							.getColor( ChartUIUtil.getExpressionString( tablePreview.getColumnHeading( i ) ) ) );
		}
	}
	private void switchDataTable( )
	{
		try
		{
			
			String[] header = getDataServiceProvider( ).getPreviewHeader( );
			if ( header == null )
			{
				tablePreview.setEnabled( false );
				tablePreview.createDummyTable( );
			}
			else
			{
				tablePreview.setEnabled( true );
				tablePreview.setColumns( header );
				refreshTableColor( );