HTML viewer for content assist [message #306092] |
Thu, 20 July 2006 09:25  |
Eclipse User |
|
|
|
Originally posted by: markproe.yahoo.com
Hello,
I am wanting to add a HTML viewer for use with content assist like the
Java Editor. So I created a ICompletionProposal class that implements
ICompletionProposalExtension3. For my getInformationControlCreator()
method, I simply return a copy of the JDT's BrowserInformationControl.
Now my problem is, the HTML viewer appears but not in the say way as in
the Java Editor. It has a white background, as opposed to the off-white
tool tip background I'd expect. Also, the window contains scroll bars,
even though the JDT's BrowserInformationControl explicitly hides the
scroll bars. In addition, the text seems to be a larger font than it
should be.
Is there something I am missing here? Do I need to do something else
besides simply copying JDT's BrowserInformationControl?
|
|
|
|
Re: HTML viewer for content assist [message #306095 is a reply to message #306094] |
Thu, 20 July 2006 09:58  |
Eclipse User |
|
|
|
Originally posted by: markproe.yahoo.com
Thanks, Tom. Adding a style sheet fixed my problem.
Tom Eicher wrote:
> Hi Mark,
> the JDT hovers (and assist infos) add a bunch of CSS in front of the
> displayed HTML that cause the needed behavior.
> @see AbstractJavaCompletionProposal.getStyleSheetURL()
> -tom
|
|
|
Powered by
FUDForum. Page generated in 0.06966 seconds