Community
Participate
Working Groups
Hi, We are developing a plugin that requires HTML format hovering help support. Just like the hovering help in JDT. (The default hovering help is text format only. It doesn’t work well across platform) I found out the JDT is using HTMLTextPresenter to implement this feature. But it is an internal class. Please open this class to public. Thanks Elwin
Please use the new SWT Browser widget as control.
*** Bug 152775 has been marked as a duplicate of this bug. ***
*** Bug 48136 has been marked as a duplicate of this bug. ***
I have tried using the Browser widget, but it is impractical at the present time because of the inability to get focus on the browser (for purposes of scrolling). The HTML Text Presenter does a nice job of shrinking the output so that a lot of content fits in a small area; enough that usually you don't need to do the "hit F2 to focus" thing. Also, in the case where you use the browser in conjunction with the CompletionProposalPopup, there is no option to use F2 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=152741).
>The HTML Text Presenter does a nice job of shrinking the output so >that a lot of content fits in a small area; enough that usually you don't need >to do the "hit F2 to focus" thing. You can do the same with the Browser widget: use wrap mode and a small font. >Also, in the case where you use the browser >in conjunction with the CompletionProposalPopup, there is no option to use F2 >(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=152741). That has nothing to do with this bug. Even if we'd use the text widget along with the html presenter it wouldn't be possible, see bug 152741.
(In reply to comment #5) > >The HTML Text Presenter does a nice job of shrinking the output so > >that a lot of content fits in a small area; enough that usually you don't need > >to do the "hit F2 to focus" thing. > You can do the same with the Browser widget: use wrap mode and a small font. Are you saying to use a small font in the html source, or is there a way to configure the Browser widget to use small fonts? I don't have control of the html source; maybe I can massage it before I display it. > > >Also, in the case where you use the browser > >in conjunction with the CompletionProposalPopup, there is no option to use F2 > >(see https://bugs.eclipse.org/bugs/show_bug.cgi?id=152741). > That has nothing to do with this bug. Even if we'd use the text widget along > with the html presenter it wouldn't be possible, see bug 152741. > Yes, my point was that because of the more compact presentation of the text (with the text presenter), F2 is not as likely to be needed. I'm not sure how much difference there is with JavaDoc, but there's quite a bit of difference with the help pages I'm linking to.
>or is there a way to configure the Browser widget to use small fonts? You can always wrap the input: that's what we do in order to allow setting the font (see latest I-build).