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/dnd/DimensionHandleDropAdapter.java
.getCommandStack( )
						.rollback( );
				return false;
			}
			LevelHandle levelHandle = hierarchyHandle.getLevel( 0 );
			
			ComputedColumn bindingColumn = CrosstabAdaptUtil.createComputedColumn( (ExtendedItemHandle) xtabHandle.getModelHandle( ),
					levelHandle );
			ComputedColumnHandle bindingHandle = ( (ExtendedItemHandle) xtabHandle.getModelHandle( ) ).addColumnBinding( bindingColumn,
					false );
			LevelViewHandle levelViewHandle = CrosstabUtil.insertLevel( viewHandle,
					levelHandle,
					0 );
			CrosstabCellHandle cellHandle = levelViewHandle.getCell( );
			DataItemHandle dataHandle = DesignElementFactory.getInstance( )
					.newDataItem( levelHandle.getName( ) );
			dataHandle.setResultSetColumn( bindingHandle.getName( ) );
			cellHandle.addContent( dataHandle );
			SessionHandleAdapter.getInstance( ).getCommandStack( ).commit( );
		}
		catch ( SemanticException e )
		{
			SessionHandleAdapter.getInstance( ).getCommandStack( ).rollback( );
			ExceptionHandler.handle( e );
			return false;
		}
		return true;
	}
}