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
final public static String WebAppPlugin = ViewerPlugin.PLUGIN_ID;
	/**
	 * locale preference name 
	 */
	final public static String USER_LOCALE = "user_locale"; 
	/**
	 * Preference key for SVG chart flag.
	 */
	final public static String SVG_FLAG = "svg_flag"; 
	/**
	 * locale mapping. Save some time.
	 */
	public static TreeMap LocaleTable = null;
	static
	{
		
		LocaleTable = new TreeMap(); 
		Locale[] locales = Locale.getAvailableLocales();
		if ( locales != null )
		{
			for ( int i = 0; i < locales.length; i++ )
			{
				Locale locale = locales[i];
				if ( locale != null )
				{
					LocaleTable.put( locale.getDisplayName( ), locale.getLanguage( ) + "_" + locale.getCountry( ) ); 
				}
			}
		}
	}