Bug 179629 After create a x-tab with a cube, a error occurs in Problems sheet[1102]
Description: After create a x-tab with a cube, a error occurs in Problems sheet[1102] Build number: 2.2.0.v20070328-0630 Steps to reproduce: 1, Create a cube 2, Create a x-tab using the cube 3, Check the error message in Problems sheet Expected result: No error occurs after create a x-tab Actual result: The error message is "The ExtendedItem must be able to access one data set."
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/DataSetRequiredValidator.java
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.eclipse.birt.report.model.api.core.IModuleModel;
import org.eclipse.birt.report.model.api.elements.SemanticError;
import org.eclipse.birt.report.model.core.ContainerContext;
import org.eclipse.birt.report.model.core.DesignElement;
import org.eclipse.birt.report.model.core.Module;
import org.eclipse.birt.report.model.elements.ExtendedItem;
import org.eclipse.birt.report.model.elements.ListingElement;
import org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel;
import org.eclipse.birt.report.model.elements.interfaces.IReportItemModel;
import org.eclipse.birt.report.model.elements.interfaces.ITabularCubeModel;
import org.eclipse.birt.report.model.elements.olap.Cube;
import org.eclipse.birt.report.model.validators.AbstractElementValidator;
/**
 * Validates the data set of some special elements should be provided.
 * 
 * <h3>Rule</h3>
 * The rule is that the <code>ListingElement.DATA_SET_PROP</code> should be
 * set on the element itself or its container which is also a listing element;
 * the <code>ICubeModel.DATA_SET_PROP</code> should be set in the cube
 * element; the <code>IReportItemModel.DATA_SET_PROP</code> should be set in
 * the extended items.
 * 
 * <h3>Applicability</h3>
 * This validator is applied to <code>ListingElement</code>,
 * <code>Cube</code> and <code>ExtendedItem</code>.
 */
public class DataSetRequiredValidator extends AbstractElementValidator