Bug 169520 Can't enter margin of master page [05]
Can't enter margin of master page [05] Build number:2.2.0.v20061229 Steps to reproduce: 1.switch to "Master Page" in layout and go to margin 2.the original left margin is 1.25in,select the left margin data,and input"0",then "0.00" will be displayed" Expected result: Only "0" is displayed Actual result: "0.00" is displayed Error log: N/A
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/widget/MarginsPropertyDescriptor.java
import java.math.BigDecimal;
import org.eclipse.birt.report.designer.internal.ui.views.attributes.page.WidgetUtil;
import org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.IDescriptorProvider;
import org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.MarginsPropertyDescriptorProvider;
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Spinner;
/**
 * SpinnerPropertyDescriptor manages Spinner choice control.
 */
public class MarginsPropertyDescriptor extends PropertyDescriptor
{
	protected Spinner spinner;
	protected CCombo combo;
	protected Composite container;
	/**
	 * @param propertyProcessor
	 *            The property handle
	 */
	public MarginsPropertyDescriptor( boolean formStyle )