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/TemplateCommand.java
* based on the given content element and add it to the report design first.
	 * Then, let the created template element refer the added template parameter
	 * definition.
	 * 
	 * @param base
	 *            the base report item or data set element to be transformed to
	 *            a template element
	 * @param slotID
	 *            the slot of the container
	 * @param name
	 *            the given name of the created template element
	 * @return the created template element
	 * @throws SemanticException
	 *             if the content can not be transformed to a template element,
	 *             current module is not a repor design and can not support
	 *             template elements, or the replacement fails
	 */
	public TemplateElement createTemplateElement( DesignElement base,
			String name ) throws SemanticException
	{
		assert base != null;
		TemplateElement template = TemplateFactory.createTemplate( module,
				base, name );
		
		
		if ( template == null )
			throw new TemplateException(
					base,
					TemplateException.DESIGN_EXCEPTION_INVALID_TEMPLATE_ELEMENT_TYPE );
		if ( !( module instanceof ReportDesign ) )