Bug 124570 Preview from toolbar always shows first report opened in session
I am testing BIRT 2.0 RC2 and am running into a problem where Preview (from the toolbar) in the Web Viewer will only show the first report I opened in a session. To reproduce the problem: 1. Start BIRT 2.0 RC2, create a project and import the attached two designs into the project. 2. Open Product Catalog and then click on the Preview button on the toolbar to see the report. Once you have viewed the report, close the viewer. 3. Open Sales Invoice and click on the Preview button again. Actual Result: You see the Product Catalog report again. Expected Result: You should see the Sales Invoice report.
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.TreeMap;
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