Bug 183910 Cross tab can not be reverted to template item after it is reverted to report item [1102]
Description: Cross tab can not be reverted to template item after it is reverted to report item. Build number: 2.2.0.v20070425-0630 Steps to reproduce: 1. New a cross tab. 2. Right click to select the cross tab, choose "Create Template Report Item" to create template item, then revert the cross tab to report item. 3. Right click to select the cross tab. Expected result: The cross tab cna be revert to report item and template item both. Actual result: In the context menu, "Revert To Report Item" and "Revert To Template Item" are grayed out. Error log: N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java
if ( derived.isEmpty( ) )
			return;
		DesignElement parent = obj.getExtendsElement( );
		Iterator iter = derived.iterator( );
		while ( iter.hasNext( ) )
		{
			DesignElement child = (DesignElement) iter.next( );
			ExtendsCommand childCmd = new ExtendsCommand( module, child );
			childCmd.setExtendsElement( parent );
		}
	}
	/**
	 * Adjusts references to an element that is to be deleted. The element to be
	 * deleted is one that has references in the form of element reference
	 * properties on other elements. These other elements, called "clients",
	 * each contain a property of type element reference and that property
	 * refers to this element. Each reference is recorded with a "back pointer"
	 * from the referenced element to the client. That back pointer has both a
	 * pointer to the client element, and the property within that element that
	 * holds the reference. There are two algorithms to handle this reference
	 * property, which can be selected by <code>unresolveReference</code>. If
	 * <code>unresolveReference</code> is <code>true</code>, the reference
	 * property is unresolved. Otherwise, it's cleared.
	 * 
	 * @param referred
	 *            the element to be deleted
	 * @param unresolveReference
	 *            the flag indicating the reference property should be
	 *            unresolved, instead of cleared
	 * @throws SemanticException