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/editpolicies/VirtualCrosstabCellFlowLayoutEditPolicy.java
Object newObject = request.getExtendedData( ).get( DesignerConstants.KEY_NEWOBJECT );
		if (model instanceof VirtualCrosstabCellAdapter)
		{
			EditPart parent = getHost( ).getParent( );
			CrosstabHandleAdapter adapter  = ((CrosstabTableEditPart)parent).getCrosstabHandleAdapter( );
			int type = ((VirtualCrosstabCellAdapter)model).getType( );
			if (newObject instanceof DimensionHandle)
			{
				return new CreateDimensionViewCommand(adapter, type, (DimensionHandle)newObject);
			}
			else if (newObject instanceof MeasureHandle && type == VirtualCrosstabCellAdapter.MEASURE_TYPE)
			{
				return new CreateMeasureViewCommand(adapter, (MeasureHandle)newObject);
			}
		}
		
		
		return super.getCreateCommand( request );
		
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.internal.ui.editors.schematic.editpolicies.ReportFlowLayoutEditPolicy#createAddCommand(org.eclipse.gef.EditPart,
	 *      org.eclipse.gef.EditPart, org.eclipse.gef.EditPart)
	 */
	protected Command createAddCommand( EditPart parent, EditPart child,
			EditPart after )
	{