Bug 9601 Open external JavaDoc does not work correctly with Netscape 4.76
Test Case: 0) Have Netscape 4.76 registered as system default browser. 1) Have JRE_LIB of 20020212-I in workspace 2) Context Menu -> Properties: Attach documentation location: 'M:\java\jdk1.2\docs\api\' 3) Verify that Netscape is not running. 4) Context Menu -> Open External Javadoc 5) Observer the error dialog: Cannot find the file 'file:/M:/JAVA/jdk1.2/docs/api/overview-summary.html' ... However, the html file is actually displayed. 6) Close the error dialog. 7) Browse to some other page in Netscape. 8) Do step 4) again. 9) The correct page is displayed w/o an error dialog.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenExternalJavadocAction.java
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.ui.texteditor.IUpdate;
import org.eclipse.help.IHelpResource;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.internal.corext.javadoc.JavaDocLocations;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels;
/**
 * On a selected member; opens the Javadoc in an external browser (if existing)
 */
public class OpenExternalJavadocAction extends Action implements IUpdate, IObjectActionDelegate {
	private StructuredSelectionProvider fSelectionProvider;
	
	/**
	 * Use only for IWorkbenchWindowActionDelegates!
	 */ 
	public OpenExternalJavadocAction() {
		this(null);
	}
	
	public OpenExternalJavadocAction(StructuredSelectionProvider provider) {