Bug 200143 If do not allow user to modify the expression, the button fx should be disabled[0005]
Description: If do not allow user to modify the expression, the button fx should be disabled[0005] Build number: 2.2.1.v20070816-0630 Steps to reproduce: 1, New a table1 with one binding 2, New a table share table1's result set 3, Drag a data item into the table 4, after specify the column binding name try to modify the expression Expected result: The expression button should be disable. Actual result: The expression can be edit but can not save, so the button should be disable Error log:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/BindingDialogHelper.java
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
/**
 * 
 */
public class BindingDialogHelper extends AbstractBindingDialogHelper
{
	protected static final String NAME = Messages.getString( "BindingDialogHelper.text.Name" ); 
	protected static final String DATA_TYPE = Messages.getString( "BindingDialogHelper.text.DataType" ); 
	protected static final String FUNCTION = Messages.getString( "BindingDialogHelper.text.Function" ); 
	protected static final String DATA_FIELD = Messages.getString( "BindingDialogHelper.text.DataField" ); 
	protected static final String FILTER_CONDITION = Messages.getString( "BindingDialogHelper.text.Filter" ); 
	protected static final String AGGREGATE_ON = Messages.getString( "BindingDialogHelper.text.AggOn" ); 
	protected static final String TABLE = Messages.getString( "BindingDialogHelper.text.Table" ); 
	protected static final String LIST = Messages.getString( "BindingDialogHelper.text.List" ); 
	protected static final String GROUP = Messages.getString( "BindingDialogHelper.text.Group" ); 
	protected static final String EXPRESSION = Messages.getString( "BindingDialogHelper.text.Expression" ); 
	protected static final String DISPLAY_NAME = Messages.getString( "BindingDialogHelper.text.displayName" ); 
	protected static final String DEFAULT_ITEM_NAME = Messages.getString( "BindingDialogHelper.bindingName.dataitem" ); 
	protected static final String DEFAULT_AGGREGATION_NAME = Messages.getString( "BindingDialogHelper.bindingName.aggregation" ); 
	protected static final IChoiceSet DATA_TYPE_CHOICE_SET = DEUtil.getMetaDataDictionary( )
			.getStructure( ComputedColumn.COMPUTED_COLUMN_STRUCT )
			.getMember( ComputedColumn.DATA_TYPE_MEMBER )
			.getAllowedChoices( );
	protected static final IChoice[] DATA_TYPE_CHOICES = DATA_TYPE_CHOICE_SET.getChoices( null );
	protected String[] dataTypes = ChoiceSetFactory.getDisplayNamefromChoiceSet( DATA_TYPE_CHOICE_SET );