Bug 145021 Enhance the agrregate on option in column binding dialog
1. Check if the expression is aggregate expression by data utility class. 2. If yes, the option is ?all? and group name list 3. if not, the option disabled (or set to none?) if the column binding is in detail row. If the column binding is in group row, the option is ?None? and group name list.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dnd/InsertInLayoutUtil.java
import org.eclipse.birt.report.model.api.TableGroupHandle;
import org.eclipse.birt.report.model.api.TableHandle;
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.birt.report.model.api.elements.DesignChoiceConstants;
import org.eclipse.birt.report.model.api.elements.ReportDesignConstants;
import org.eclipse.birt.report.model.api.elements.structures.ComputedColumn;
import org.eclipse.gef.EditPart;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
/**
 * Utility for creation from data view to layout
 */
public class InsertInLayoutUtil
{
	/**
	 * Rule interface for defining insertion rule
	 */
	abstract static interface InsertInLayoutRule
	{
		public boolean canInsert( );
		public Object getInsertPosition( );
		public void insert( Object object ) throws SemanticException;
	}
	/**
	 * 
	 * Rule for inserting label after inserting data set column
	 */
	static class LabelAddRule implements InsertInLayoutRule