Bug 121864 Report element can't be deleted
Description: Report element can't be deleted Steps to reproduce: 1.Open the attached design file 2.Delete the table/parameters/dataset/datasource Expected result: The element can be deleted Actual result: They can't be deleted
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java
{
			if ( StringUtil.isBlank( newElement.getName( ) ) )
				throw new ContentException( element, slotID, newElement,
						ContentException.DESIGN_EXCEPTION_CONTENT_NAME_REQUIRED );
		}
		if ( !element.canContain( module, slotID, newElement ) )
			throw new ContentException(
					element,
					slotID,
					newElement,
					ContentException.DESIGN_EXCEPTION_INVALID_CONTEXT_CONTAINMENT );
		
		ContainerSlot slot = element.getSlot( slotID );
		if ( !slot.contains( oldElement ) )
			throw new ContentException( element, slotID, oldElement,
					ContentException.DESIGN_EXCEPTION_CONTENT_NOT_FOUND );
		
		if ( !oldElement.canTransformToTemplate( module ) )
			throw new ContentException(
					element,
					slotID,
					ContentException.DESIGN_EXCEPTION_TEMPLATE_TRANSFORM_FORBIDDEN );
		
		
		if ( hasDescendents( oldElement, slotID ) )
		{
			throw new ContentException( oldElement, slotID,
					ContentException.DESIGN_EXCEPTION_HAS_DESCENDENTS );
		}