Bug 131622 UI - Autotext enhancments - Support Total Page count
Engine will support total page count. We need to make the UI changes to support the total page count.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/internal/document/v2/ReportContentLoaderV2.java
Object value = context.evaluate( valueExpr );
					data.setValue( value );
				}
			}
		}
	}
	protected void checkDataSet( DataID dataId, IResultSet rset )
	{
		DataSetID dsetId = rset.getID( );
		DataSetID rsetId = dataId.getDataSetID( );
		assert dsetId != null;
		assert rsetId != null;
		assert dsetId.toString( ).equals( rsetId.toString( ) );
	}
	protected void closeQuery( IContent content )
	{
		Object generateBy = content.getGenerateBy( );
		if ( generateBy instanceof ReportItemDesign )
		{
			ReportItemDesign design = (ReportItemDesign) generateBy;
			IBaseQueryDefinition query = design.getQuery( );
			if ( query != null )
			{
				IResultSet rset = (IResultSet) resultSets.pop( );
				if ( rset != null )
				{
					rset.close( );
				}
			}
		}