Bug 181355 Cross tab layout behavior
- add a cross tab item - try to drag and drop a level from the cube( in data explorer ) into the cross tab layout Currently this is not supported. User can only drag dimension nodes. Expected behavior - User should be able to drag level nodes too, this should actually add dimension to the cross tabl row/column area
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/editors/model/CrosstabAdaptUtil.java
{
	/**Gets the row or column count  after the handel, now include the current handle 
	 * @param handle
	 * @return
	 */
	public static int getNumberAfterDimensionViewHandle(DimensionViewHandle handle)
	{
		CrosstabReportItemHandle reportItem = (CrosstabReportItemHandle)CrosstabUtil.getReportItem( handle.getCrosstabHandle( ) );
		int index  = handle.getIndex( );
		int type = handle.getAxisType( );
		int count = reportItem.getDimensionCount( type);
		int retValue = 0;
		for (int i=index; i<count; i++)
		{
			retValue = retValue + reportItem.getDimension( type, index ).getLevelCount( );
		}
		return retValue;
	}
	
	/**
	 * @param owner
	 * @param levelHandle