Bug 147547 Eclipse appears to hang for a short period when previewing report
Open a report design in BIRT report designer. Click on "Preview" pane of the report view to preview the report. Very often it will take quite a few seconds before the designer actually switch to that pane (on my machine it could take up to 10 seconds). During this period the entire Eclipse hangs and does not respond to any keyboard or mouse events. This always leaves me wondering if I had missed the tab on the click, and had to click again to make sure. This is not user friendly. If we can't switch to the Preview pane in a timely manner at least display a busy mouse pointer to let the user know that his click is being processed. This issue is most noticeable when you run report for the first time after starting eclipse.
viewer/org.eclipse.birt.report.viewer/src/org/eclipse/birt/report/viewer/utilities/WebViewer.java
/*************************************************************************************
 * Copyright (c) 2004 Actuate Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Actuate Corporation - Initial implementation.
 ************************************************************************************/
package org.eclipse.birt.report.viewer.utilities;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Locale;
import java.util.Random;
import java.util.TreeMap;
import java.util.regex.Pattern;
import org.eclipse.birt.report.viewer.ViewerPlugin;
import org.eclipse.birt.report.viewer.browsers.BrowserAccessor;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Path;
import org.eclipse.swt.browser.Browser;
/**
 * Static accessor to display an arbitary url. It serves as an entry point to
 * integrate viewer.
 * <p>
 */
public class WebViewer