Bug 181575 Layou Measures Vertically can be changed and saved in layout [1102]
Layou Measures Vertically can be changed and saved in layout [1102] Build number: 2.2.0.v20070409-0630 Steps to reproduce: 1.new a report 2.insert a cross tab to layout and select the cross tab ,tick off"Layout Measures Vertically" Expected result: Layout measures can be changed and saved Actual result: Can't changed and saved Error log: N/A
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/ui/views/attributes/provider/LayoutMeasuresProvider.java
String vertical = ICrosstabConstants.MEASURE_DIRECTION_VERTICAL;
		if (crosstabHandle != null) {
			vertical = crosstabHandle.getMeasureDirection();
		}
		return (vertical.equals(ICrosstabConstants.MEASURE_DIRECTION_VERTICAL)) ? "true"
				: "false";
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.IDescriptorProvider#save(java.lang.Object)
	 */
	public void save(Object value) throws SemanticException {
		String stringValue = (String) value;
		if (stringValue != null && stringValue.equalsIgnoreCase("true")) {
			crosstabHandle
					.setMeasureDirection(ICrosstabConstants.MEASURE_DIRECTION_VERTICAL);
		} else 
		{
			crosstabHandle
					.setMeasureDirection(ICrosstabConstants.MEASURE_DIRECTION_HORIZONTAL);
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.IDescriptorProvider#setInput(java.lang.Object)
	 */
	public void setInput(Object input) {