Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » ContentAssist with AdditionalInfo in HTML format
ContentAssist with AdditionalInfo in HTML format [message #510042] Tue, 26 January 2010 05:31 Go to next message
Xavier Coulon is currently offline Xavier Coulon
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 00:39 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2250
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 WTP, IBM
Re: ContentAssist with AdditionalInfo in HTML format [message #510572 is a reply to message #510042] Wed, 27 January 2010 16:14 Go to previous message
Xavier Coulon is currently offline Xavier Coulon
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: Fri Aug 22 23:50:42 EDT 2014

Powered by FUDForum. Page generated in 0.01911 seconds