Bug 214577 Support cube filter in chart
For chart consuming cube, need to support filtering on categories or series, possibly on values if time allows. The UI is similar to the filter dialog for cross tab, but there should be no measure or dimension concepts in chart's dialog.
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartCubeQueryHelper.java
{
		if ( expr == null )
			return false;
		return expr.matches( "\\Qdimension[\"\\E.*\\Q\"][\"\\E.*\\Q\"]\\E" ); 
	}
	/**
	 * This method is used to get the level name that reference by a level
	 * reference expression of following format:
	 * dimension["dimensionName"]["levelName"].
	 * 
	 * String[0] dimensionName; String[1] levelName;
	 * 
	 * @param expr
	 * @return String[]
	 */
	static String[] getTargetLevel( String expr )
	{
		
		if ( expr == null )
			return null;
		if ( !expr.matches( "\\Qdimension[\"\\E.*\\Q\"][\"\\E.*\\Q\"]\\E" ) ) 
			return null;
		expr = expr.replaceFirst( "\\Qdimension\\E", "" ); 
		String[] result = expr.split( "\\Q\"][\"\\E" ); 
		result[0] = result[0].replaceAll( "\\Q[\"\\E", "" ); 
		result[1] = result[1].replaceAll( "\\Q\"]\\E", "" ); 
		return result;
	}
}