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
public void visitDesignElement( DesignElement obj )
	{
		super.visitDesignElement( obj );
		
		attribute( obj, DesignSchemaConstants.NAME_ATTRIB,
				DesignElement.NAME_PROP );
		writer.attribute( DesignSchemaConstants.ID_ATTRIB, new Long( obj
				.getID( ) ).toString( ) );
		attribute( obj, DesignSchemaConstants.EXTENDS_ATTRIB,
				DesignElement.EXTENDS_PROP );
		attribute( obj, DesignSchemaConstants.VIEW_ACTION_ATTRIB,
				DesignElement.VIEW_ACTION_PROP );
		property( obj, DesignElement.COMMENTS_PROP );
		propertyCDATA( obj, DesignElement.CUSTOM_XML_PROP );
		resourceKey( obj, DesignElement.DISPLAY_NAME_ID_PROP,
				DesignElement.DISPLAY_NAME_PROP );
		property( obj, DesignElement.EVENT_HANDLER_CLASS_PROP );
		writeUserPropertyDefns( obj );
		writeUserPropertyValues( obj );
		writeStructureList( obj, DesignElement.PROPERTY_MASKS_PROP );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.elements.ElementVisitor#visitSimpleDataSet(org.eclipse.birt.report.model.elements.SimpleDataSet)
	 */
	public void visitDataSet( DataSet obj )
	{
		super.visitDataSet( obj );
		writeStructureList( obj, DataSet.RESULT_SET_HINTS_PROP );