Bug 213406 [2.2.2]Data preview problem in chart builder
Description: Create a chart bind with a dataset, then add a computed column in the dataset, the data preview of chart builder could not get the computed column. Build version:2.2.2.v20071219-1001 Steps to reproduce: 1.Create sample datasource and dataset. 2.Create a chart, bind with the dataset. 3.Add a computed column in the "Edit dataset" dialog, and then check the data preview of chart builder, the computed column could not show in it. Even if click "use data set" again, it still does not work. Expected result: The data preview of chart builder should refreshed as the dataset changed.
chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/dialogs/ChartColumnBindingDialog.java
protected void addBinding( ComputedColumn column )
	{
		try
		{
			DEUtil.addColumn( inputElement, column, true );
		}
		catch ( SemanticException e )
		{
			ChartWizard.showException( e.getLocalizedMessage( ) );
		}
	}
	protected List getBindingList( DesignElementHandle inputElement )
	{
		Iterator iterator = ChartReportItemUtil.getColumnDataBindings( (ReportItemHandle) inputElement );
		List list = new ArrayList( );
		while ( iterator.hasNext( ) )
		{
			list.add( iterator.next( ) );
		}
		return list;
	}
	protected void setShellStyle( int newShellStyle )
	{
		super.setShellStyle( newShellStyle
				| SWT.DIALOG_TRIM
				| SWT.RESIZE
				| SWT.APPLICATION_MODAL );
	}
}