Bug 121269 Allow displaying HTML source for debugging
With the new AJAX-based viewer, one can no longer see the HTML source of the page. This is extremely inconvenient for debugging engine problems, because there is not an easy way to see the HTML source code. This might fall into the category an enhancement, but since it significantly reduces other people's work efficiency, I listed its severity as a "major".
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