Bug 158256 Parameter dialog won't pop up in web viewer with internal browser
Steps to reproduce: 1.Open Window->Preferences->Preview, untick "Always use external browsers"and choose "Default System Browser" 2.New a parameter without default value 3.Preview in Web Viewer, input "a" as the parameter value 4.Close the browser, and preview in Web Viewer again Expected result: Parameter dialog pops up for value input Actual result: Parameter dialog won't pop up, and its value comes from the generated document
viewer/org.eclipse.birt.report.viewer/src/org/eclipse/birt/report/viewer/browsers/embedded/EmbeddedBrowserAdapter.java
if ( defaultDisplay == Display.getCurrent( ) )
		{
			uiClose( );
		}
		else
		{
			defaultDisplay.syncExec( new Runnable( ) {
				public void run( )
				{
					uiClose( );
				}
			} );
		}
	}
	/**
	 * Must be run on UI thread
	 */
	private void uiClose( )
	{
		if ( browser != null && !browser.isDisposed( ) )
		{
			browser.close( );
		}
	}
	private EmbeddedBrowser getBrowser( )
	{
		if ( browser == null || browser.isDisposed( ) )
		{
			browser = new EmbeddedBrowser( );
		}