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
{
			new ProgressMonitorDialog( PlatformUI.getWorkbench( )
					.getDisplay( )
					.getActiveShell( ) ) {
				protected void cancelPressed( )
				{
					super.cancelPressed( );
					needsUpdateUI = false;
				}
			}.run( true, true, runnable );
		}
		catch ( InvocationTargetException e )
		{
			ExceptionHandler.handle( e.getCause( ) );
		}
		catch ( InterruptedException e )
		{
			ExceptionHandler.handle( e );
		}
		
		updateResultSetTableUI( );
	}
	
	private EngineConfig getEngineConfig( ModuleHandle handle )
	{
		EngineConfig ec = new EngineConfig( );
		ClassLoader parent = Thread.currentThread( ).getContextClassLoader( );
		if ( parent == null )
		{
			parent = this.getClass( ).getClassLoader( );