Bug 313297 XML data set fail in chart data preview
chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/swt/CustomPreviewTable.java
SelectionListener
	{
		transient Color[] colors = null;
		private transient Vector[] cells = null;
		private transient int iSelectedRow = -1;
		private transient boolean bColumnSelection = false;
		private transient int iMaxRowIndex = 0;
		private transient boolean isFirstPaint = true;
		public static final int SCROLL_HORIZONTAL_STEP = 100;
		public TableCanvas( Composite parent, int style, int iColumns,
				Color[] colors, CustomPreviewTable container )
		{
			super( parent, style | SWT.H_SCROLL | SWT.V_SCROLL );
			addPaintListener( this );
			addMouseListener( this );
			addMouseListener( container );
			getHorizontalBar( ).addSelectionListener( this );
			getVerticalBar( ).addSelectionListener( this );
			cells = new Vector[iColumns];
			this.colors = new Color[iColumns];
			for ( int i = 0; i < iColumns; i++ )
			{
				cells[i] = new Vector( );
				try
				{
					this.colors[i] = colors[i];
				}
				catch ( ArrayIndexOutOfBoundsException e )
				{
					this.colors[i] = Display.getDefault( )