Bug 316695 Refactor data set editor pages' codes[26568]
Build Identifier: 20100610 Refactor data set editor pages' codes[26568]. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/DataSetParametersPage.java
private void createExpressionCell( Composite parent, String label )
		{
			ControlProvider.createLabel( parent, label );
			defaultValueComposite = ControlProvider.getDefaultComposite( parent );
			defaultValueString = Utility.getNonNullString( structureHandle.getDefaultValue( ) );
			defaultValueText = ControlProvider.createText( defaultValueComposite,
					defaultValueString );
			defaultValueText.setLayoutData( ControlProvider.getGridDataWithHSpan( 1 ) );
			defaultValueText.addModifyListener( new ModifyListener( ) {
				public void modifyText( ModifyEvent e )
				{
					if ( defaultValueText.isEnabled( ) )
					{
						validateSyntax( );
					}
				}
			} );
			SelectionAdapter listener = new SelectionAdapter( ) {
				public void widgetSelected( SelectionEvent event )
				{
					ExpressionBuilder expressionBuilder = new ExpressionBuilder( defaultValueText.getText( ) );
					expressionBuilder.setExpressionProvier( null );
					if ( expressionBuilder.open( ) == OK )
					{
						defaultValueText.setText( expressionBuilder.getResult( )
								.trim( ) );
					}
				}
			};
			ExpressionProvider provider = new ExpressionProvider( (DataSetHandle) getContainer( ).getModel( ) );