Bug 194843 Cross tab Cube - Cannot delete a dimension using the cube builder
- Open the attached report design - Delete the "Region" group. Current behavior - Does now allow me to delete the group.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/command/ContentCommandTest.java
assertEquals( styleHandle, labelHandle.getStyle( ) );
		iter = styleHandle.clientsIterator( );
		assertEquals( true, iter.hasNext( ) );
		
		createStyleAndLabel( );
		styleHandle = designHandle.findStyle( "style" );
		labelHandle = (LabelHandle) designHandle.findElement( "label" );
		styleHandle.drop( );
		assertEquals( null, labelHandle.getStyle( ) );
		assertEquals( styleHandle.getName( ), labelHandle
				.getStringProperty( LabelHandle.STYLE_PROP ) );
		iter = styleHandle.clientsIterator( );
		assertEquals( false, iter.hasNext( ) );
		designHandle.getCommandStack( ).undo( );
		assertEquals( styleHandle.getName( ), labelHandle
				.getStringProperty( LabelHandle.STYLE_PROP ) );
		assertEquals( styleHandle, labelHandle.getStyle( ) );
		iter = styleHandle.clientsIterator( );
		assertEquals( true, iter.hasNext( ) );
	}
	private void createStyleAndLabel( ) throws Exception
	{
		designHandle = createDesign( );
		SharedStyleHandle styleHandle = designHandle.getElementFactory( )
				.newStyle( "style" );
		LabelHandle labelHandle = designHandle.getElementFactory( ).newLabel(
				"label" );
		designHandle.getStyles( ).add( styleHandle );
		designHandle.getBody( ).add( labelHandle );
		labelHandle.setStyle( styleHandle );