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
{
		FormEditor editor = UIUtil.getActiveReportEditor( false );
		ModuleHandle model = SessionHandleAdapter.getInstance( )
				.getReportDesignHandle( );
		if ( editor != null )
		{
			if ( model.needsSave( ) )
			{
				editor.doSave( null );
			}
		}
		Map options = new HashMap( );
		options.put( WebViewer.FORMAT_KEY, format );
		options.put( WebViewer.ALLOW_PAGE_KEY, Boolean.valueOf( allowPage ) );
		options.put( WebViewer.RESOURCE_FOLDER_KEY, ReportPlugin.getDefault( )
				.getResourceFolder( ) );
		WebViewer.display( model.getFileName( ), options );
	}
	private boolean isEnable( )
	{
		IEditorPart editor = UIUtil.getActiveEditor( true );
		if ( editor != null )
		{
			return ( editor.getEditorInput( )
					.getName( )
					.endsWith( ".rptdesign" ) || editor.getEditorInput( ).getName( ).endsWith( ".rpttemplate" ) ); 
		}
		return false;
	}
}