Bug 200478 Name of date/time group level issue[1101]
Description: Name of date/time group level issue[1101] Step: 1. New a sample datasource and dataset from orders. 2. New a data cube and binding to the dataset. 3. Drop the column of "ORDERDATE" to group and select the year type. At this time, the name of group level is "year(ORDERDATE: DateTime)" 4. Edit the the group level. 5. Change the type as month. Actual result: The name of group level is "year(ORDERDATE: DateTime, DateTime)" Expected result: The name of group level is "year(ORDERDATE: DateTime)"
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/PropertyCommand.java
import org.eclipse.birt.report.model.elements.interfaces.IStyledElementModel;
import org.eclipse.birt.report.model.elements.olap.Level;
import org.eclipse.birt.report.model.elements.olap.OdaLevel;
import org.eclipse.birt.report.model.elements.olap.TabularLevel;
import org.eclipse.birt.report.model.elements.strategy.GroupPropSearchStrategy;
import org.eclipse.birt.report.model.elements.strategy.ReportItemPropSearchStrategy;
import org.eclipse.birt.report.model.i18n.MessageConstants;
import org.eclipse.birt.report.model.i18n.ModelMessages;
import org.eclipse.birt.report.model.metadata.ElementPropertyDefn;
import org.eclipse.birt.report.model.metadata.ElementRefValue;
import org.eclipse.birt.report.model.metadata.PropertyDefn;
import org.eclipse.birt.report.model.util.ModelUtil;
import org.eclipse.birt.report.model.util.ReferenceValueUtil;
/**
 * Sets the value of a property. Works with both system and user properties.
 * Works with normal and intrinsic properties.
 * 
 */
public class PropertyCommand extends AbstractPropertyCommand
{
	/**
	 * Constructor.
	 * 
	 * @param module
	 *            the root of <code>obj</code>
	 * @param obj
	 *            the element to modify.
	 */
	public PropertyCommand( Module module, DesignElement obj )
	{