Bug 179687 Every cube's dimensions can be used by one x-tab[1102]
Description: Do not allowed other cube's dimension using in the x-tab which is not using that cube[1102] Build number: 2.2.0.v20070328-0630 Steps to reproduce: 1, New two cubes, cube1 and cube2 2, Create a x-tab using cube1 3, Drag the dimension of cube2 to x-tab Expected result: The step3's operation should be forbidden Actual result: All the dimensions can be dragged into the x-tab Error log:
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/editors/model/CrosstabHandleAdapter.java
import org.eclipse.birt.report.item.crosstab.core.util.CrosstabUtil;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.DimensionHandle;
import org.eclipse.birt.report.model.api.ExtendedItemHandle;
import org.eclipse.birt.report.model.api.elements.DesignChoiceConstants;
import org.eclipse.birt.report.model.api.extension.ExtendedElementException;
/**
 * The adapter for the crosstab.
 */
public class CrosstabHandleAdapter extends BaseCrosstabAdapter
{
	private static final String COLUMNAREA_COLUMN = "columnarea_column";
	private static final String COLUMNAREA_ROW = "columnarea_row";
	private static final String ROWAREA_COLUMN = "rowarea_column";
	private static final String ROWAREA_ROW = "rowarea_row";
	public static final String DEFAULT_WIDTH = "100.0"
			+ DesignChoiceConstants.UNITS_PERCENTAGE;
	public static final String LEFT_CONNER = "left_conner";
	private ICrosstabCellAdapterFactory factory = createCrosstabCellAdapterFactory( );
	private int columnAndMeasureColumnNumber = -1;
	private List oldModelList = new ArrayList( );
	/**
	 * Record the infomation of the model structure.
	 */
	private HashMap map = new HashMap( );
	/**
	 * Constructor
	 * 
	 * @param handle
	 */