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
import org.eclipse.birt.report.designer.nls.Messages;
import org.eclipse.birt.report.designer.ui.ReportPlugin;
import org.eclipse.birt.report.designer.ui.preview.Activator;
import org.eclipse.birt.report.engine.api.EngineConfig;
import org.eclipse.birt.report.engine.api.ReportEngine;
import org.eclipse.birt.report.model.api.ModuleHandle;
import org.eclipse.birt.report.viewer.utilities.WebViewer;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowPulldownDelegate;
import org.eclipse.ui.forms.editor.FormEditor;
public class PreviewToolbarMenuAction implements
		IWorkbenchWindowPulldownDelegate
{
	private Image previewIcon = Activator.getImageDescriptor( "icons/etool16/preview.gif" )
			.createImage( );
	private Image previewPDFIcon = Activator.getImageDescriptor( "icons/etool16/preview_pdf.gif" )
			.createImage( );
	
	private Image previewDOCIcon = Activator.getImageDescriptor( "icons/etool16/preview_pdf.gif" )
			.createImage( );