Bug 180654 Cannot add column binding for Time type in Property Editor.[0001]
Description: Cannot add column binding for Time type in Property Editor. Build number:2.2.0.v200704031345 Steps to reproduce: 1. New sample data source and data set. 2. Drag one column to layout. 3. In Binding of Property Editor, Edit binding to set Type to Time, click OK. Expected result: Type is changed to Time. Actual result: Type is changed to Date Time. Error log:N/A
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DataItemBindingDialog.java
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
public class DataItemBindingDialog extends BaseDialog
{
	protected static final String NAME = Messages.getString( "DataItemBindingDialog.text.Name" );
	protected static final String DISPLAY_NAME = Messages.getString( "DataItemBindingDialog.text.displayName" );
	protected static final String DATA_TYPE = Messages.getString( "DataItemBindingDialog.text.DataType" );
	protected static final String EXPRESSION = Messages.getString( "DataItemBindingDialog.text.Expression" );
	protected static final String AGGREGATE_ON = Messages.getString( "DataItemBindingDialog.text.AggregateOn" );
	protected static final String FORCE_BINDING_TEXT = Messages.getString( "DataItemBindingDialog.text.ForceBinding" );
	protected static final String DEFAULT_ITEM_NAME = "data item";
	protected static final String ALL = Messages.getString( "DataItemBindingDialog.text.All" );
	protected static final String NONE = Messages.getString( "DataItemBindingDialog.text.None" );
	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 static final String NEW_DATAITEM_TITLE = Messages.getString( "DataItemBindingDialog.title.CreateNewItem" );