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
return;
		}
		int selectionStart = textWidget.getSelection( ).x;
		textWidget.insert( text );
		textWidget.setSelection( selectionStart + text.length( ) );
		textWidget.setFocus( );
		if ( text.endsWith( "()" ) ) 
		{
			textWidget.setCaretOffset( textWidget.getCaretOffset( ) - 1 ); 
		}
	}
	/**
	 * Creates the source viewer to be used by this editor.
	 * 
	 * @param parent
	 *            the parent control
	 * @return the source viewer
	 */
	protected SourceViewer createSourceViewer( Composite parent )
	{
		IVerticalRuler ruler = createVerticalRuler( );
		Composite composite = new Composite( parent, SWT.BORDER |
				SWT.LEFT_TO_RIGHT );
		composite.setLayoutData( new GridData( GridData.FILL_BOTH ) );
		composite.setLayout( UIUtil.createGridLayoutWithoutMargin( ) );
		int styles = SWT.V_SCROLL |
				SWT.H_SCROLL |
				SWT.MULTI |
				SWT.BORDER |
				SWT.FULL_SELECTION;