Bug 213946 The cancel button of select data binding doesn't work[13]
Description: The cancel button of select data binding doesn't work[13] Build number: 2.3.0.v20071227-0800 Steps to reproduce: 1, New a chart 2, Select the dataset 3, Open the data binding 4, Add a data binding 5, Click Cancel button in Select Data Binding dialog Expected result: After step5, the new data binding is canceled Actual result: After step5, the data binding is created. Error log:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ExpressionBuilder.java
protected boolean validateScript( )
	{
		if ( sourceViewer == null )
		{
			return false;
		}
		String errorMessage = null;
		try
		{
			new ScriptValidator( sourceViewer ).validate( );
			setMessage( Messages.getString( "ExpressionBuilder.Script.NoError" ), IMessageProvider.INFORMATION ); 
			return true;
		}
		catch ( ParseException e )
		{
			int offset = e.getErrorOffset( );
			int row = sourceViewer.getTextWidget( ).getLineAtOffset( offset ) + 1;
			int column = offset -
					sourceViewer.getTextWidget( ).getOffsetAtLine( row - 1 ) +
					1;
			errorMessage = Messages.getFormattedString( "ExpressionBuilder.Script.Error", new Object[]{Integer.toString( row ), Integer.toString( column ), e.getLocalizedMessage( )} ); 
			return false;
		}
		finally
		{
			setErrorMessage( errorMessage );
		}
	}
}