Bug 212984 Disable Dimension or Level drag into outline
Description: The levels are not auto-outspread when drag the dimension from Data explorer to Outline Build number: 2.3.0.v20071214 Steps to reproduce: 1, New a cube with multiple levels in one dimension 2, New a crosstab 3, Drag the dimension from cube to crosstab's column area in Outline Expected result: The levels are auto-outspread. Actual result: The levels are not auto-outspread. Error log:
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/dnd/DimensionHandleDropAdapter.java
0 );
			HierarchyHandle hierarchyHandle = dimensionHandle.getDefaultHierarchy( );
			int count = hierarchyHandle.getLevelCount( );
			if ( count == 0 )
			{
				SessionHandleAdapter.getInstance( )
						.getCommandStack( )
						.rollback( );
				return false;
			}
			LevelHandle levelHandle = hierarchyHandle.getLevel( 0 );
			
			DataItemHandle dataHandle = CrosstabAdaptUtil.createColumnBindingAndDataItem( (ExtendedItemHandle) xtabHandle.getModelHandle( ),
					levelHandle );
			LevelViewHandle levelViewHandle = viewHandle.insertLevel( levelHandle,
					0 );
			CrosstabCellHandle cellHandle = levelViewHandle.getCell( );
			cellHandle.addContent( dataHandle );
			SessionHandleAdapter.getInstance( ).getCommandStack( ).commit( );
		}
		catch ( SemanticException e )
		{
			SessionHandleAdapter.getInstance( ).getCommandStack( ).rollback( );
			ExceptionHandler.handle( e );
			return false;
		}
		return true;
	}
}