Bug 191802 View report menu and icon fail with RPTDESIGN extension name.[00]
Description: View report menu and icon fail with RPTDESIGN extension name. Build number:2.2.0.v20070608 Steps to reproduce: 1. New a report test.rptdesign, change its extension name to uppcase as test.RPTDESIGN. 2. oPEN THE REPORT. Expected result: Viewer report in main menu and toolbar can be used. Actual result: Viewer report in main menu and toolbar are disabled. Error log:N/A
UI/org.eclipse.birt.report.designer.ui.preview.web/src/org/eclipse/birt/report/designer/ui/actions/PreviewToolbarMenuAction.java
/**
	 * The constructor.
	 */
	public PreviewToolbarMenuAction( )
	{
		super( );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.IWorkbenchWindowPulldownDelegate#getMenu(org.eclipse.swt.widgets.Control)
	 */
	public Menu getMenu( Control parent )
	{
		ReportEngine engine = new ReportEngine( new EngineConfig( ) );
		String[] supportedFormats = engine.getSupportedFormats( );
		Menu menu = new Menu( parent );
		MenuItem previewWebViewer = new MenuItem( menu, SWT.PUSH );
		previewWebViewer.setText( Messages.getString( "designer.preview.previewaction.label.webviewer" ) ); 
		previewWebViewer.setImage( previewIcon ); 		
		previewWebViewer.addSelectionListener( new SelectionAdapter( ) {
			public void widgetSelected( SelectionEvent e )
			{
				preview( "html", true );
			}
		} );
		for ( int i = 0; i < supportedFormats.length; i++ )
		{
			final String format = supportedFormats[i];
			MenuItem previewOption = new MenuItem( menu, SWT.PUSH );