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
throw new ContentException( element, slotID, content,
						ContentException.DESIGN_EXCEPTION_CONTENT_NAME_REQUIRED );
		}
		if ( !element.canContain( module, slotID, content ) )
			throw new ContentException(
					element,
					slotID,
					content,
					ContentException.DESIGN_EXCEPTION_INVALID_CONTEXT_CONTAINMENT );
		
		TemplateCommand cmd = new TemplateCommand( module, element );
		TemplateParameterDefinition templateParam = cmd.checkAdd( content,
				slotID );
		ContentRecord addTemplateParam = null;
		if ( templateParam != null )
			addTemplateParam = new ContentRecord( module, module,
					ReportDesign.TEMPLATE_PARAMETER_DEFINITION_SLOT,
					templateParam, true );
		
		ContentRecord addRecord;
		if ( newPos == -1 )
		{
			addRecord = new ContentRecord( module, element, slotID, content,
					true );
		}
		else
		{
			addRecord = new ContentRecord( module, element, slotID, content,
					newPos );
		}