Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » HTML viewer for content assist
HTML viewer for content assist [message #306092] Thu, 20 July 2006 09:25 Go to next message
Eclipse UserFriend
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 #306094 is a reply to message #306092] Thu, 20 July 2006 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom_eicher.ch.ibm.com

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

Mark P wrote:
> 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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Using FileDialog for SaveAs
Next Topic:headless pde build and fragments
Goto Forum:
  


Current Time: Fri Apr 25 19:38:16 EDT 2025

Powered by FUDForum. Page generated in 0.06966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top