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
TemplateCommand cmd = new TemplateCommand( module, element );
		TemplateParameterDefinition templateParam = cmd.checkAdd( newElement,
				slotID );
		ContentRecord addTemplateParam = null;
		if ( templateParam != null )
			addTemplateParam = new ContentRecord( module, module,
					ReportDesign.TEMPLATE_PARAMETER_DEFINITION_SLOT,
					templateParam, true );
		
		ContentReplaceRecord replaceRecord = new TemplateTransformRecord(
				module, element, slotID, oldElement, newElement );
		ActivityStack stack = getActivityStack( );
		stack.startFilterEventTrans( replaceRecord.getLabel( ) );
		try
		{
			doDelectAction( oldElement, unresolveReference );
		}
		catch ( SemanticException ex )
		{
			stack.rollback( );
			throw ex;
		}
		if ( addTemplateParam != null )
			stack.execute( addTemplateParam );
		
		stack.execute( replaceRecord );
		try
		{
			addElementNames( newElement );
		}