Bug 188038 Need know which measure ComputedColumnHandle aggregate on.
GUI need to show the measure name ont the data item in the aggregation cell.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/util/OlapExpressionCompiler.java
/**
 * 
 */
public class OlapExpressionCompiler
{
	/**
	 * Get referenced Script Object (dimension, data, measure, etc) according to given object name.
	 * @param expr
	 * @param objectName
	 * @return
	 */
	public static String getReferencedScriptObject( IBaseExpression expr, String objectName )
	{
		if ( expr instanceof IScriptExpression )
		{
			return getReferencedScriptObject( ((IScriptExpression)expr), objectName );
		}
		else if ( expr instanceof IConditionalExpression )
		{
			String dimName = null;
			IScriptExpression expr1 = ((IConditionalExpression)expr).getExpression( );
			dimName = getReferencedScriptObject( expr1, objectName );
			if ( dimName!= null )
				return dimName;
			IScriptExpression op1 = ((IConditionalExpression)expr).getOperand1( );
			dimName = getReferencedScriptObject( op1, objectName );
			if ( dimName!= null )
				return dimName;
			
			IScriptExpression op2 = ((IConditionalExpression)expr).getOperand2( );