Bug 200887 No select list of filter condition if a crosstab has one dimension and one measure[1102]
Description: No select list of filter condition if a crosstab has one dimension and one measure[1102] Build number: 2.2.1.v20070823-0630 Steps to reproduce: 1, New a crosstab has one dimension and one measure 2, Create a filter on crosstab 3, Select filter condition in drop list of "Enter a filter condition" Expected result: The dimension should be in the list Actual result: No selection list. Error log:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/CubeQueryUtil.java
{
			throw new AdapterException( e.getLocalizedMessage( ), e );
		}
	}
	/**
	 * 
	 * @param query
	 * @param target
	 * @return
	 */
	private boolean isLeafLevel( ICubeQueryDefinition query, DimLevel target )
	{
		return isLeafLevel( query.getEdge( ICubeQueryDefinition.COLUMN_EDGE ),
				target )
				|| isLeafLevel( query.getEdge( ICubeQueryDefinition.ROW_EDGE ),
						target );
	}
	/**
	 * 
	 * @param edge
	 * @param target
	 * @return
	 */
	private boolean isLeafLevel( IEdgeDefinition edge, DimLevel target )
	{
		IDimensionDefinition dim = (IDimensionDefinition) edge.getDimensions( )
				.get( edge.getDimensions( ).size( ) - 1 );
		if ( dim.getName( ).equals( target.getDimensionName( ) ) )
		{
			IHierarchyDefinition hier = (IHierarchyDefinition) dim.getHierarchy( )