Bug 92568 - [javadoc] JRE's javadocs not recognized by the popup viewer
Summary: [javadoc] JRE's javadocs not recognized by the popup viewer
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-04-25 08:26 EDT by sin(pi) CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sin(pi) CLA 2005-04-25 08:26:35 EDT
At migration from M5 to M6, popup Javadoc viewing for JRE stopped functioning. 
No settings were changed, apart from the obvious per-jar Javadoc settings new 
to M6.

Inline javadocs in project files function correctly at all times, and so do JRE 
docs when launched via Shift+F2.

Changing Javadoc URLs to local files solves nothing. They still work with 
Shift+F2 and not at all in the popup viewer.
Comment 1 Dirk Baeumer CLA 2005-04-25 09:51:02 EDT
This works for me using I20050420-1200.


Having the cursor in  asList in Arrays.asList and pressing Shift+F2 takes me to
the correct Javadoc. Any steps to reproduce.
Comment 2 sin(pi) CLA 2005-04-25 14:15:01 EDT
Using JRE 1.5.0b2 and using default jar settings. Indeed, Shift+F2 opens 
correct javadocs in an external browser (MSIE here). When the F2 popup is 
shown, it briefly flashes with the Internet Explorer black-on-white error page, 
before being replaced with a blank declaration.
Comment 3 Dirk Baeumer CLA 2005-04-25 19:14:21 EDT
F2 is editor hover pop-up. Moving...
Comment 4 Dani Megert CLA 2005-04-26 03:19:29 EDT
To summarize (assume caret is inside type T or method m):
- pressing Ctrl+F2 opens Javadoc in external browser
- when hovering with mouse over T or m it shows Javadoc in hover
- pressing F2 opens shell with IE but has no content

correct?

- anything in .log?
- what happens if you press F2 while hover is already shown?
- please open the Javadoc view and click into T or m: does the Javadoc view show
the Javadoc and if so, is it showing in the Browser widget (IE) or in a text
widget? (if you don't know, open the type Pattern: if you see links inside the
Javadoc view it's using the Browser widget).
Comment 5 sin(pi) CLA 2005-04-26 05:11:15 EDT
- pressing Ctrl+F2 opens Javadoc in external browser
Negative, Ctrl+F2 does nothing. Shift+F2 opens Javadoc in external browser.

- when hovering with mouse over T or m it shows Javadoc in hover
Negative. The hover appears, but with the declaration only. ( http://maxxx.is-a-
geek.org/popup_hover.png )

- pressing F2 opens shell with IE but has no content
First it opens a "cancelled" IE window ( http://maxxx.is-a-
geek.org/popup_cancelled.png - the message is Polish "Action cancelled. 
Internet Explorer could not access the requested page" ) for a fraction of a 
second. Then, a "blank" Javadoc is displayed ( http://maxxx.is-a-
geek.org/popup_f2.png ).

- anything in .log?
No .log files in configuration/ so far.

- what happens if you press F2 while hover is already shown?
The same what happens if I press it without waiting for the popup.

- please open the Javadoc view and click into T or m: does the Javadoc view show
the Javadoc and if so, is it showing in the Browser widget (IE) or in a text
widget?
The Javadoc does not react - this is the same behaviour as placing the caret in 
anything that doesn't have a Javadoc defined.

HOWEVER, all JRE Javadocs now show correctly after I have attached the JRE 
source. Are Javadoc popups supposed to work only with the full source available?
Anyway, the links are active, which I believe answers your last question.


Still, there is another problem: the Pattern doc now shows correctly, with 
links - but clicking "line terminators" (the first link in this doc) results in 
a "blank#lt" page. Has the IE window been started with "blank" as the page, 
only has had its contents replaced with a Javadoc, and then a "#lt" anchor 
jumps confuses the browser? Just a wild guess. Also, afterwards, hitting 
Alt+Left (Back) makes the IE popup return to "action cancelled", instead of the 
Javadoc it was displaying. It also returns to "action cancelled" when going 
Back after successfully displaying the O'Reilly book page (last link in 
Pattern).
Comment 6 Dani Megert CLA 2005-04-26 05:32:12 EDT
>HOWEVER, all JRE Javadocs now show correctly after I have attached the JRE 
>source. Are Javadoc popups supposed to work only with the full source available?
Correct (there's a feature request to change this).

Did the source got lost while switching an existing workspace from M5 to M6 or
did you add a new JRE which had no source?

Ctrl+F2: my bad, I meant Shift+F2

Your Javadoc view findings are correct, there are bugs for those.

Comment 7 Dani Megert CLA 2007-06-22 09:59:21 EDT
Get rid of deprecated state.
Comment 8 Dani Megert CLA 2007-06-22 10:04:36 EDT
.