Bug 192101 Add measure to xtab should add measure label automatically[1102]
Description: Add measure to xtab should add measure label automatically even no content in column area. Build number:2.2.0.v20070612 Steps to reproduce: 1. New a cube. 2. Insert a xtab, drag group to row area and then drag measure to detail area. Expected result: Label for measure is inserted automatically. Actual result: Label for measure isn't inserted automatically. But if you drag a group to column area, the label will be inserted at this time. Error log:N/A
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/editors/model/CrosstabHandleAdapter.java
CrosstabCellAdapter columnVirtual = factory.createCrosstabCellAdapter( ICrosstabCellAdapterFactory.CELL_ROW_VIRTUAL,
					null,
					1,
					-1,
					1,
					-1,
					false );
			retValue.add( columnVirtual );
			columnNumber = 1;
			rowNumber = 1;
		}
		map.put( ROWAREA_COLUMN, new Integer( columnNumber ) );
		map.put( ROWAREA_ROW, new Integer( rowNumber ) );
		
		covertColumnNumber( columnNumber, retValue );
		
		return retValue;
	}
	private List buildColumnArea( )
	{
		List retValue = new ArrayList( );
		CrosstabReportItemHandle handle = getCrosstabReportItemHandle( );
		int count = handle.getDimensionCount( ICrosstabConstants.COLUMN_AXIS_TYPE );
		int measureCount = handle.getMeasureCount( );
		int rowNumber = measureCount == 0 ? 1 : 2;
		if ( isVertical( ) )
		{
			rowNumber = 1;
		}