Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 58930 - [About] Unable to open web browser: Help->About Eclipse Platform->Feature Details->More Info
Summary: [About] Unable to open web browser: Help->About Eclipse Platform->Feature Det...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: Sun Solaris
: P3 normal with 1 vote (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 73274 (view as bug list)
Depends on: 69647
Blocks:
  Show dependency tree
 
Reported: 2004-04-16 16:12 EDT by Brian So CLA
Modified: 2005-04-07 13:03 EDT (History)
8 users (show)

See Also:


Attachments
About dialog moved to the workbench browser support (5.02 KB, patch)
2005-04-07 10:20 EDT, Dejan Glozic CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian So CLA 2004-04-16 16:12:57 EDT
Platforms: Solaris 9 and HP-UX11.11
Eclipse 3.0M8, Build Id: 200403261517

First I will prove that I can open the web browser via Eclipse Help:
- Go to Window->Preferences->Help. Enter in the browser's path and command (e.g 
<path>/netscape %1) into "Customer Browser command". Click OK.
- Go to Help->Help Contents. The browser opens with Eclipse Help System content.
The browser is working O.K.

I now go to Help again:
- Help->About Eclipse Platform->Feature Details. Select an item and click 'More 
Info'. An error dialog box comes up with an "Unable to open web browser" 
message. Same with Help->About Eclipse Platform->Plug-in Details

Is there any place on Eclipse that I can set the 'More Info' web browser 
preference?
Comment 1 Konrad Kolosowski CLA 2004-04-19 12:51:58 EDT
Tod,
This is not a help issue.  Help works for Brian.
It is Help->About that has a problem opening a browser.  I think the code for 
this in UI component.  Moving back to UI.
Comment 2 Brian So CLA 2004-06-07 16:44:21 EDT
Some more info for you:
If I put netscape in my path instead of go to Window->Preferences->Help to 
specify the full path for netscape, the 'More Info" will work. Looks like 
the 'More Info' does not use Help Preference.

If you are not planning to fix it, can you at least put it in the release note. 
Thanks.
Comment 3 Andrew Eidsness CLA 2004-06-10 14:32:51 EDT
I looked into the code for this.  ProductInfoDialog currently guesses at 
netscape, then tries mozilla, then gives up.  No path information is used.  This 
should be changed to use the help preference as described in comment 2.
Comment 4 Sudarsha Wijenayake CLA 2004-07-08 09:47:30 EDT
Also exists in Eclipse 3.0 Release (Build id: 200406251208) on Solaris 9. 
Even though this has been a known issue since 2004-04-16, it is not mentioned 
in the release notes of Eclipse 3.0 Build.
Comment 5 Andrew Eidsness CLA 2004-08-25 15:33:20 EDT
The problem is that the About dialog is making guesses at a valid browser on the 
user's system.  On windows this seems to work very well since IE gets picked and 
works.  There doesn't seem to be a problem on MAC either since /usr/bin/open 
seems to be a well-known app.  The problem comes on other platforms where the 
about dialog tries netscape, then mozilla, then gives up.

The original plan to fix the about dialog was to look for the help preference 
that's mentioned in the original bug description.  After more investigation I 
see that help has put alot of work into browser management (the BrowserManager 
and releated classes).

I would like to use these classes (the about dialog is accessed from the Help 
menu so I think it makes sense from a user's point of view too).  However, 
they're currently internal and are declared in org.eclipse.help.base.

Konrad, is there any chance that the browser management can be made available 
somehow?
Comment 6 Konrad Kolosowski CLA 2004-08-25 16:09:28 EDT
Yes.  I see ... HTML viewer/browser support in the UI and available to all 
components.  This can be just using the code currently residing in help or 
better.  There is more discussion in bug 69647 (and related).
Comment 7 Andrew Eidsness CLA 2004-09-07 11:37:05 EDT
*** Bug 73274 has been marked as a duplicate of this bug. ***
Comment 8 Nick Edgar CLA 2005-04-07 09:29:33 EDT
Should switch to using new browser support.
Dejan, would you like to help out with this one?
Comment 9 Dejan Glozic CLA 2005-04-07 09:49:13 EDT
Yes, I will attach a patch that moves 'About' to the browser support.
Comment 10 Nick Edgar CLA 2005-04-07 10:00:23 EDT
Great, thanks.
Comment 11 Nick Edgar CLA 2005-04-07 10:02:05 EDT
Dejan, will it work the same as before if o.e.ui.browser is not installed (i.e.
for RCP apps)?  That is, is the default behaviour to open the external browser
appropriate for the system?

Should test with the browser example (o.e.ui.examples.rcp.browser).

Comment 12 Dejan Glozic CLA 2005-04-07 10:20:08 EDT
Created attachment 19648 [details]
About dialog moved to the workbench browser support
Comment 13 Dejan Glozic CLA 2005-04-07 11:00:11 EDT
It will - in fact the code for the fallback browser support is a direct copy 
from AboutDialog.
Comment 14 Nick Edgar CLA 2005-04-07 11:42:28 EDT
Dejan, with this patch I get an error dialog due to a MalformedURLException when
I  do: Help > About > Configuration Details > View Error Log.
It's trying to construct a URL with
"d:\eclipse-new\empty-workspace2\.metadata\.log".
Comment 15 Nick Edgar CLA 2005-04-07 12:27:32 EDT
I've fixed this by changing AboutSystemDialog.openErrorLogBrowser to do:
            openLink("file:///" + filename); //$NON-NLS-1$
instead of
            openLink(filename);

I don't think the other callers of openLink will pass a file name.

Comment 16 Nick Edgar CLA 2005-04-07 13:03:52 EDT
Patch applied.  Also improved the error handling to give more details about the
URL attempted, and the exception that occurred.