Bug 164568 [regression]Edit dataset from library cannot work properly[01][07]
Description: Edit dataset from library cannot work properly Platform: Eclipse3.2.1 Build number&#65306;2.2.0.v20061114-0634 Steps to reproduce: 1. New a library, create sample data source and dataset from OFFICES table. 2. Use this library in a report design. 3. Drag the data source and data set to Data Explorer 4. Modify the dataset to point to another table ORDERS in query text, preview result. 5. Expand dataset node to see columns. 6. Select the dataset and right click, select refresh. Expected result: Step4 display datas from table ORDERS. Step5 display columns from ORDERS. Step6 display columns from ORDERS. Actual result: Step4 is correct. Step5 displayed two table columns from ORDERS and OFFICES. Step6 display columns from OFFICES. Close the report and reopen it will not resolve this issue. Error log:N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
import org.eclipse.birt.report.model.parser.DesignSchemaConstants;
import org.eclipse.birt.report.model.parser.treebuild.ContentNode;
import org.eclipse.birt.report.model.parser.treebuild.ContentTree;
import org.eclipse.birt.report.model.util.ContentIterator;
/**
 * Represents the module writer which writes an XML file following the BIRT
 * design schema. Uses a visitor pattern to traverse each element. BIRT elements
 * support inheritance in several forms. Because of this, the module writer
 * writes only those properties "local" to the element being written -- it does
 * not write inherited properties.
 * <p>
 * Because the XML schema was designed for to be understood by humans, the
 * schema is not a literal representation of the model. Instead, properties are
 * named and grouped in a way that is easiest to explain and understand. This
 * means that the writer has to do a bit more work to write the design, the the
 * extra work here is well worth the savings to the many customers who will read
 * the design format.
 * 
 */
public abstract class ModuleWriter extends ElementVisitor
{
	/**
	 * The low-level writer that emits XML syntax.
	 */
	/**
	 * The constant for default model name space.
	 */
	final protected static String DEFAULT_NAME_SPACE = "http://www.eclipse.org/birt/2005/design"; 
	/**
	 * The XML writer.