Bug 318835 Refactor data set editor pages' codes[27965]
Build Identifier: 20100702 Refactor data set editor pages' codes. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/ResultSetPreviewPage.java
DataSetPreviewer previewer = new DataSetPreviewer(
							dsHandle, getMaxRowPreference( ));
					Map dataSetBindingMap = new HashMap( );
					Map dataSourceBindingMap = new HashMap( );
					try
					{
						clearProperyBindingMap( 
								dataSetBindingMap,
								dataSourceBindingMap );
						Map appContext = new HashMap( );
						AppContextPopulator.populateApplicationContext( dsHandle, appContext );
						previewer.open( appContext, getEngineConfig( handle ) );
						populateRecords( previewer.preview( ) );
						previewer.close( );
						monitor.done( );
					}
					catch ( BirtException e )
					{
						throw new InvocationTargetException( e );
					}
					finally
					{
						resetPropertyBinding(
								dataSetBindingMap,
								dataSourceBindingMap );
					}		
				}
			}
		};
		try