Community
Participate
Working Groups
The original enhancement request (bug #125426) was closed, possibly mistakenly, without being addressed. The original request was to use the internal browser when the users selects Open External Javadoc. I also see this issue in 3.3.2 - there is no way to use the internal browser for viewing javadocs. +++ This bug was initially created as a clone of Bug #125426 +++ Please look up the setting in Preferencs->General-Web Browser to decide whether to launch an external browser or use the internal browser when the user selects Navigate->Open External Javadoc. At the moment regardless of the choice an external browser is launched. Many thanks Jonathan
Now I look at the bug again I can see that it was closed in error. Assigning to JDT.
We use the Help system because it is capable of showing files inside archives. Unfortunately the Help system always want to run externally or in the Help view. In order to use IWorkbenchBrowserSupport instead of the Help system we'd have to implement the archive support ourselves, which is currently not planned.
Chris, would it be possible for Help to give a Help web app URL for a given local/relative URL, so that we could use the browser support to open the given help web app URL?
Dani, what API from the help system are you using right now to open JavaDoc? Is it the case that the URI which you are passing in could be either a help system URI or a local file system URI?
We use the following API: org.eclipse.ui.help.IWorkbenchHelpSystem.displayHelpResource(String) The reason use the help server/API is because it can look into JARs i.e. it supports URLs like: jar:file:/C:/JavaSDKs/jdk6_10/jdk-6-doc.zip!/docs/api/java/util/HashMap.html (we append ?noframes=true but that's a detail) which results in: http://127.0.0.1:2526/help/nftopic/jar:file:/C:/JavaSDKs/jdk6_10/jdk-6-doc.zip!/docs/api/java/util/HashMap.html
*** Bug 272875 has been marked as a duplicate of this bug. ***
Moving to User Assistance to get the new API. Please move back to JDT once this is available. API that allows to transform the URL so that we can read/load files from a JAR would be sufficient.
Dani, can you give more detail about what the new API is that you are looking for? I saw Comment #3 but I was not sure what the new API would look like. Are you just looking for a function that would take "jar:file:/C:/JavaSDKs/jdk6_10/jdk-6-doc.zip!/docs/api/java/util/HashMap.html" as a parameter and return http://127.0.0.1:2526/help/nftopic/jar:file:/C:/JavaSDKs/jdk6_10/jdk-6-doc.zip!/docs/api/java/util/HashMap.html as the result?
(In reply to comment #8) Yes, with the side effect that the help server is started.
I notice that there is a function resolve() in IWorkbenchHelpSystem which is used like this: PlatformUI.getWorkbench().getHelpSystem().resolve(href, documentOnly); and which starts the help system. Could that work for you?
That's exactly what we need. Good catch Chris!
Created attachment 136972 [details] Work in progress
Fixed in HEAD. Available in builds > N20091117-2000.
*** Bug 125426 has been marked as a duplicate of this bug. ***
Verified for 3.6 M4 with I20091207-1800.
Verified for 3.6 M4 with I20091207-1800 on Vista64 with 32bit Browsers.