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
{
					temp = (Integer) map.get( getWorkArea( COLUMNAREA_COLUMN ) );
					measuresHandles = crosstab.getAggregationMeasures( getWorkArea( ICrosstabConstants.COLUMN_AXIS_TYPE ) );
				}
				else
				{
					temp = (Integer) map.get( levelViewHandle );
					measuresHandles = levelViewHandle.getAggregationMeasures( );
				}
				if ( temp == null )
				{
					throw new RuntimeException( "build error" );
				}
				measureCount = measuresHandles.size( );
				position = measuresHandles.indexOf( measureHandle );
				if ( temp.intValue( ) <= count )
				{
					measureCount = count;
					position = i;
				}
				int tempPosition = temp.intValue( ) >= measureCount ? temp.intValue( )
						: measureCount;
				int column = tempPosition - ( measureCount - position ) + 1;
				
				
				levelViewHandle = cell.getLevelView( getWorkArea( ICrosstabConstants.ROW_AXIS_TYPE ) );
				if ( levelViewHandle == null )
				{
					temp = (Integer) map.get( getWorkArea( ROWAREA_ROW ) );
				}