Bug 9601 - Open external JavaDoc does not work correctly with Netscape 4.76
Summary: Open external JavaDoc does not work correctly with Netscape 4.76
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 5033
  Show dependency tree
 
Reported: 2002-02-13 09:26 EST by Claude Knaus CLA
Modified: 2002-04-02 03:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claude Knaus CLA 2002-02-13 09:26:59 EST
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.
Comment 1 Erich Gamma CLA 2002-02-13 14:52:23 EST
to avoid the browser problem, could we use the HelpViewer as the browser to 
show the documentation.
Comment 2 Martin Aeschlimann CLA 2002-03-29 12:26:36 EST
fixed > 20020328 now using help.

not tested by me: Please reopen and move to help if help has a problem with 
netscape too
Comment 3 Claude Knaus CLA 2002-04-02 02:56:28 EST
Latest workspace (20020402):

I pointed the javadoc to 'http://www.junit.org/junit/javadoc/3.7/'.
I got an NPE on presssing Shift-F2 on 'Assert' of its type declaration.

---8<---

java.lang.NullPointerException
	at 
org.eclipse.jdt.internal.ui.actions.OpenExternalJavadocAction.openInBrowser
(OpenExternalJavadocAction.java:162)
	at org.eclipse.jdt.internal.ui.actions.OpenExternalJavadocAction.run
(OpenExternalJavadocAction.java:118)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at org.eclipse.ui.actions.RetargetAction.runWithEvent
(RetargetAction.java:143)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1420)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:755)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:738)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:777)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
	at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14)
Comment 4 Martin Aeschlimann CLA 2002-04-02 03:31:40 EST
help support was not installed. added npe check.

tested with netscape under windows, works.