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
SourceViewer viewer = new SourceViewer( composite, ruler, styles );
		viewer.configure( new JSSourceViewerConfiguration( ) );
		JSEditorInput editorInput = new JSEditorInput( expression );
		JSDocumentProvider documentProvider = new JSDocumentProvider( );
		try
		{
			documentProvider.connect( editorInput );
		}
		catch ( CoreException e )
		{
			ExceptionHandler.handle( e );
		}
		viewer.setDocument( documentProvider.getDocument( editorInput ),
				ruler == null ? null : ruler.getModel( ) );
		return viewer;
	}
	/**
	 * Creates a new line number ruler column that is appropriately initialized.
	 * @param annotationModel 
	 * 
	 * @return the created line number column
	 */
	private IVerticalRulerColumn createLineNumberRulerColumn( )
	{
		LineNumberRulerColumn column = new LineNumberRulerColumn( );
		column.setForeground( JSSourceViewerConfiguration.getColorByCategory( PreferenceNames.P_LINENUMBER_COLOR ) );
		return column;
	}
	/**
	 * Creates a new line number ruler column that is appropriately initialized.