Bug 197756 Data Set Row Limit
Tested with release 2.2 and 2.2.1S20070713 1) create a report 2) add data source & data set (JDBC or Sample Database) 3) Put data source to a table 4) Set Data Set Row Limit to to some value (e.g. 5) 5) preview ==> 5 rows are displayed 6) Set Data Set Row Limit to to some other value (e.g. 10) 7) preview ==> 5 (!!) rows are displayed and not 10 - you must restart eclipse, only then the new value takes effect
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/adapter/ModelDteApiAdapter.java
IScriptDataSetEventHandler eventHandler = new ScriptDataSetScriptExecutor(
				modelDataSet, context );
		dteDataSet.setEventHandler( eventHandler );
		
		adaptBaseDataSet( modelDataSet, dteDataSet );
		
		dteDataSet.setOpenScript( modelDataSet.getOpen( ) );
		dteDataSet.setFetchScript( modelDataSet.getFetch( ) );
		dteDataSet.setCloseScript( modelDataSet.getClose( ) );
		dteDataSet.setDescribeScript( modelDataSet.getDescribe( ) );
		return dteDataSet;
	}
	void adaptBaseDataSet( DataSetHandle modelDataSet,
			BaseDataSetDesign dteDataSet ) throws BirtException
	{
		if ( (!(modelDataSet instanceof JointDataSetHandle)) && modelDataSet.getDataSource( ) == null )
			throw new EngineException(
					"The data source of this data set can not be null." );
		if ( !( modelDataSet instanceof JointDataSetHandle ) )
		{
			dteDataSet.setDataSource( modelDataSet.getDataSource( )
					.getQualifiedName( ) );
			dteDataSet.setBeforeOpenScript( modelDataSet.getBeforeOpen( ) );
			dteDataSet.setAfterOpenScript( modelDataSet.getAfterOpen( ) );
			dteDataSet.setOnFetchScript( modelDataSet.getOnFetch( ) );
			dteDataSet.setBeforeCloseScript( modelDataSet.getBeforeClose( ) );
			dteDataSet.setAfterCloseScript( modelDataSet.getAfterClose( ) );
			
			dteDataSet.setCacheRowCount( modelDataSet.getCachedRowCount( ) );
		}