Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » ContentAssist with AdditionalInfo in HTML format
ContentAssist with AdditionalInfo in HTML format [message #510042] Tue, 26 January 2010 10:31 Go to next message
Xavier Coulon is currently offline Xavier CoulonFriend
Messages: 58
Registered: July 2009
Member
Hello,

I'm working on a plugin for the WTP HTML editor. For now, this plugin provides just extra elements based on the Apache Tapestry web framework.
For each proposal, I want to display additional info based on the javadoc of the web framework components (if available).
Up to now, I've managed to generate the proposals and I can retrieve the javadoc in plain text or HTML format, using
JavadocContentAccess.getContentReader(component, true);


or
JavadocContentAccess.getHTMLContentReader(component, true, true);


Yet, the javadoc is not displayed as an HTML content, so all paragraphs (<p> tags) and links are lost, and the additional info is not very readable.
Actually, the CompletionProposal constructor only takes a String as a parameter for additionalInfo attribute, I haven't seen any switch to activate some HTML rendering.

Also, I've read on another thread that the JDT additional info uses the SWT Browser underneath to render the javadoc in HTML.


Does this feature exist in the context of WTP HTML editor ?

Thank you in advance
Regards,
Xavier
Re: ContentAssist with AdditionalInfo in HTML format [message #510284 is a reply to message #510042] Wed, 27 January 2010 05:39 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

On 1/26/2010 5:31 AM, Xavier Coulon wrote:
> Also, I've read on another thread that the JDT additional info uses the
> SWT Browser underneath to render the javadoc in HTML.
>
> Does this feature exist in the context of WTP HTML editor ?

No, but not because we've never thought of it. We're waiting for the
necessary classes to become proper API in the Platform rather than
create and support our own copies of them.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=218482
https://bugs.eclipse.org/bugs/show_bug.cgi?id=241896

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: ContentAssist with AdditionalInfo in HTML format [message #510572 is a reply to message #510042] Wed, 27 January 2010 21:14 Go to previous message
Xavier Coulon is currently offline Xavier CoulonFriend
Messages: 58
Registered: July 2009
Member
Hello Nitin,

Thank you for the answer. I just voted for those issues Wink

Regards,
Xavier

Previous Topic:Can't get logfiles for tomcat 5.5
Next Topic:STDERR in red in eclipse for tomcat 5.5
Goto Forum:
  


Current Time: Tue Apr 16 11:03:46 GMT 2024

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

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

Back to the top