Bug 155943 "Restore Properties" is always enabled for extended chart
Steps to reproduce: 1.New a report, includes a library, extends lib.chart 2.Choose the chart Expected result: "Restore Properties" is disabled untill set/change any local properties for the chart Actual result: "Restore Properties" is always enabled
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
attribute( obj, DesignSchemaConstants.NAME_ATTRIB,
				DesignElement.NAME_PROP );
		writer.attribute( DesignSchemaConstants.ID_ATTRIB, new Long( obj
				.getID( ) ).toString( ) );
		property( obj, TemplateParameterDefinition.ALLOWED_TYPE_PROP );
		resourceKey( obj, TemplateParameterDefinition.DESCRIPTION_ID_PROP,
				TemplateParameterDefinition.DESCRIPTION_PROP );
		writeContents( obj, TemplateParameterDefinition.DEFAULT_SLOT,
				DesignSchemaConstants.DEFAULT_TAG );
		writer.endElement( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.elements.ElementVisitor#visitTemplateReportItem(org.eclipse.birt.report.model.elements.TemplateReportItem)
	 */
	public void visitTemplateReportItem( TemplateReportItem obj )
	{
		
		boundColumnsMgr.dealTemplateReportItem( obj, getModule( ) );
		writer.startElement( DesignSchemaConstants.TEMPLATE_REPORT_ITEM_TAG );
		super.visitTemplateReportItem( obj );
		writeStructureList( obj, TemplateReportItem.VISIBILITY_PROP );
		writeUserPropertyDefns( obj );
		writeUserPropertyValues( obj );
		writer.endElement( );
	}
	/*
	 * (non-Javadoc)
	 *