Bug 132786 Value2 should be cleaned after convert operator from between to equal in highlight rule.
Description: Value2 should be cleaned after convert operator from between to equal in highlight rule. Steps to reproduce: 1. Insert a data. 2. Set highlight rule in Property Editor. 2 between 1 and 3, color blue. 3. Save the report 4. Modify highlight rule, change to 1 equal 1, color blue. 5. Save the report, see generated xml source. Expected result: In xml source, value2 should be cleaned in highlight expression. Actual result: In xml source, value1 is 1 and value2 is 3.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/HighlightRuleHandle.java
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.model.api;
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.birt.report.model.api.elements.structures.DateTimeFormatValue;
import org.eclipse.birt.report.model.api.elements.structures.FormatValue;
import org.eclipse.birt.report.model.api.elements.structures.HighlightRule;
import org.eclipse.birt.report.model.api.elements.structures.NumberFormatValue;
import org.eclipse.birt.report.model.api.elements.structures.StringFormatValue;
import org.eclipse.birt.report.model.core.CachedMemberRef;
import org.eclipse.birt.report.model.core.MemberRef;
/**
 * Represents a highlight rule in the highlight property of a style. A highlight
 * rule gives a set of conditional style properties along with a condition for
 * when to apply the properties. A highlight can be defined in either a shared
 * style or a private style.